Use stock eslint
This commit is contained in:
27
.eslintrc
27
.eslintrc
@@ -1,14 +1,35 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": "airbnb",
|
"extends": "eslint:recommended",
|
||||||
"globals": {
|
"globals": {
|
||||||
"wp": true
|
"wp": true
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
|
"node": true,
|
||||||
|
"es6": true,
|
||||||
"amd": true,
|
"amd": true,
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"jquery": true,
|
"jquery": true
|
||||||
"node": true
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"globalReturn": true,
|
||||||
|
"generators": false,
|
||||||
|
"objectLiteralDuplicateProperties": false,
|
||||||
|
"experimentalObjectRestSpread": true
|
||||||
|
},
|
||||||
|
"ecmaVersion": 2017,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"import",
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"import/core-modules": [],
|
||||||
|
"import/ignore": [
|
||||||
|
"node_modules",
|
||||||
|
"\\.(coffee|scss|css|less|hbs|svg|json)$"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"comma-dangle": ["error", {
|
"comma-dangle": ["error", {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"root": false,
|
"root": false,
|
||||||
"extends": "airbnb",
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"import/no-extraneous-dependencies": 0,
|
"import/no-extraneous-dependencies": 0,
|
||||||
"prefer-rest-params": 0,
|
"prefer-rest-params": 0,
|
||||||
|
|||||||
@@ -40,11 +40,8 @@
|
|||||||
"css-loader": "^0.26.1",
|
"css-loader": "^0.26.1",
|
||||||
"cssnano": "^3.10.0",
|
"cssnano": "^3.10.0",
|
||||||
"eslint": "^3.13.1",
|
"eslint": "^3.13.1",
|
||||||
"eslint-config-airbnb": "^14.0.0",
|
|
||||||
"eslint-loader": "^1.6.1",
|
"eslint-loader": "^1.6.1",
|
||||||
"eslint-plugin-import": "^2.0.1",
|
"eslint-plugin-import": "^2.0.1",
|
||||||
"eslint-plugin-jsx-a11y": "^3.0.2",
|
|
||||||
"eslint-plugin-react": "^6.9.0",
|
|
||||||
"extract-text-webpack-plugin": "^2.0.0-beta.4",
|
"extract-text-webpack-plugin": "^2.0.0-beta.4",
|
||||||
"file-loader": "^0.9.0",
|
"file-loader": "^0.9.0",
|
||||||
"glob": "^7.1.1",
|
"glob": "^7.1.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user