updates
This commit is contained in:
parent
62790ed4af
commit
72d37711f9
6 changed files with 311 additions and 398 deletions
11
README.md
11
README.md
|
@ -89,6 +89,17 @@ module.exports = require('@ringofstorms/eslint-config').prettierConfig;
|
|||
}
|
||||
```
|
||||
|
||||
# Updating package scripts
|
||||
|
||||
Add
|
||||
```json
|
||||
"test": "npm run lint:fix",
|
||||
"lint": "npm run lint:prettier && npm run lint:eslint",
|
||||
"lint:fix": "npm run lint:prettier -- --write && npm run lint:eslint -- --fix ",
|
||||
"lint:eslint": "eslint './**/*.{js,jsx,ts,tsx}'",
|
||||
"lint:prettier": "prettier . --check"
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
||||
## Packing
|
||||
|
|
1
base.js
1
base.js
|
@ -19,7 +19,6 @@ module.exports = {
|
|||
env: {
|
||||
node: true,
|
||||
jest: true,
|
||||
es6: true,
|
||||
},
|
||||
globals: {
|
||||
process: true,
|
||||
|
|
680
package-lock.json
generated
680
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@ringofstorms/eslint-config",
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.0",
|
||||
"description": "Opinionated eslint configuration for node typescript projects",
|
||||
"main": "src/index.js",
|
||||
"files": [
|
||||
|
@ -33,16 +33,16 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": ">=5",
|
||||
"@typescript-eslint/parser": ">=4",
|
||||
"eslint": ">=7",
|
||||
"@typescript-eslint/parser": ">=5",
|
||||
"eslint": ">=8",
|
||||
"eslint-config-prettier": ">=8",
|
||||
"eslint-config-react": ">= 1",
|
||||
"eslint-import-resolver-typescript": ">= 2",
|
||||
"eslint-import-resolver-typescript": ">=3",
|
||||
"eslint-plugin-css-modules": ">= 2",
|
||||
"eslint-plugin-eslint-comments": ">= 3",
|
||||
"eslint-plugin-filenames": ">=1",
|
||||
"eslint-plugin-import": ">= 2",
|
||||
"eslint-plugin-new-with-error": ">=3",
|
||||
"eslint-plugin-new-with-error": ">=4",
|
||||
"eslint-plugin-prettier": ">=4",
|
||||
"eslint-plugin-react": ">= 7",
|
||||
"eslint-plugin-react-hooks": ">=4",
|
||||
|
|
6
react.js
vendored
6
react.js
vendored
|
@ -3,18 +3,18 @@ module.exports = {
|
|||
extends: [
|
||||
"@ringofstorms/eslint-config/base",
|
||||
"plugin:react/recommended",
|
||||
"plugin:react-hooks/recommended",
|
||||
"plugin:import/react",
|
||||
"plugin:css-modules/recommended",
|
||||
"prettier",
|
||||
],
|
||||
env: {
|
||||
browser: true,
|
||||
jasmine: true,
|
||||
jest: true,
|
||||
es6: true,
|
||||
node: false,
|
||||
},
|
||||
globals: {
|
||||
process: true,
|
||||
process: false,
|
||||
},
|
||||
settings: {
|
||||
...require("./src/react/settings/react"),
|
||||
|
|
|
@ -7,6 +7,5 @@ module.exports = {
|
|||
singleQuote: true,
|
||||
trailingComma: "all",
|
||||
bracketSpacing: true,
|
||||
jsxBracketSameLine: false,
|
||||
arrowParens: "always",
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue