Browse Source

Added linting script

develop
Ezerous 6 years ago
parent
commit
6278e826a5
  1. 4
      .eslintrc.json
  2. 3
      package.json

4
.eslintrc.json

@ -1,4 +1,5 @@
{ {
"extends": "airbnb",
"rules": { "rules": {
"comma-dangle": ["error", "never"], "comma-dangle": ["error", "never"],
"no-console": "off", "no-console": "off",
@ -10,6 +11,5 @@
"ExportDeclaration": "never" "ExportDeclaration": "never"
}], }],
"object-curly-spacing": ["error", "always"] "object-curly-spacing": ["error", "always"]
}, }
"extends": "airbnb"
} }

3
package.json

@ -20,5 +20,8 @@
"eslint-plugin-import": "2.16.0", "eslint-plugin-import": "2.16.0",
"eslint-plugin-jsx-a11y": "6.2.1", "eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4" "eslint-plugin-react": "7.12.4"
},
"scripts": {
"lint": "eslint app/src --format table"
} }
} }

Loading…
Cancel
Save