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
|
# Contributing
|
||||||
|
|
||||||
## Packing
|
## Packing
|
||||||
|
|
1
base.js
1
base.js
|
@ -19,7 +19,6 @@ module.exports = {
|
||||||
env: {
|
env: {
|
||||||
node: true,
|
node: true,
|
||||||
jest: true,
|
jest: true,
|
||||||
es6: true,
|
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
process: true,
|
process: true,
|
||||||
|
|
682
package-lock.json
generated
682
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",
|
"name": "@ringofstorms/eslint-config",
|
||||||
"version": "0.3.0",
|
"version": "0.4.0",
|
||||||
"description": "Opinionated eslint configuration for node typescript projects",
|
"description": "Opinionated eslint configuration for node typescript projects",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -33,16 +33,16 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": ">=5",
|
"@typescript-eslint/eslint-plugin": ">=5",
|
||||||
"@typescript-eslint/parser": ">=4",
|
"@typescript-eslint/parser": ">=5",
|
||||||
"eslint": ">=7",
|
"eslint": ">=8",
|
||||||
"eslint-config-prettier": ">=8",
|
"eslint-config-prettier": ">=8",
|
||||||
"eslint-config-react": ">= 1",
|
"eslint-config-react": ">= 1",
|
||||||
"eslint-import-resolver-typescript": ">= 2",
|
"eslint-import-resolver-typescript": ">=3",
|
||||||
"eslint-plugin-css-modules": ">= 2",
|
"eslint-plugin-css-modules": ">= 2",
|
||||||
"eslint-plugin-eslint-comments": ">= 3",
|
"eslint-plugin-eslint-comments": ">= 3",
|
||||||
"eslint-plugin-filenames": ">=1",
|
"eslint-plugin-filenames": ">=1",
|
||||||
"eslint-plugin-import": ">= 2",
|
"eslint-plugin-import": ">= 2",
|
||||||
"eslint-plugin-new-with-error": ">=3",
|
"eslint-plugin-new-with-error": ">=4",
|
||||||
"eslint-plugin-prettier": ">=4",
|
"eslint-plugin-prettier": ">=4",
|
||||||
"eslint-plugin-react": ">= 7",
|
"eslint-plugin-react": ">= 7",
|
||||||
"eslint-plugin-react-hooks": ">=4",
|
"eslint-plugin-react-hooks": ">=4",
|
||||||
|
|
6
react.js
vendored
6
react.js
vendored
|
@ -3,18 +3,18 @@ module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
"@ringofstorms/eslint-config/base",
|
"@ringofstorms/eslint-config/base",
|
||||||
"plugin:react/recommended",
|
"plugin:react/recommended",
|
||||||
|
"plugin:react-hooks/recommended",
|
||||||
"plugin:import/react",
|
"plugin:import/react",
|
||||||
"plugin:css-modules/recommended",
|
"plugin:css-modules/recommended",
|
||||||
"prettier",
|
"prettier",
|
||||||
],
|
],
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
jasmine: true,
|
|
||||||
jest: true,
|
jest: true,
|
||||||
es6: true,
|
node: false,
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
process: true,
|
process: false,
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
...require("./src/react/settings/react"),
|
...require("./src/react/settings/react"),
|
||||||
|
|
|
@ -7,6 +7,5 @@ module.exports = {
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
trailingComma: "all",
|
trailingComma: "all",
|
||||||
bracketSpacing: true,
|
bracketSpacing: true,
|
||||||
jsxBracketSameLine: false,
|
|
||||||
arrowParens: "always",
|
arrowParens: "always",
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue