Set up base eslint config in .eslintrc.js
After doing this, new rules began applying for some reason: `eol-last` only began taking the 'always' parameter as of 3.6.0, so I needed to update eslint. `no-unused-var` started warning about process.env after updating the config structure `comma-dangle` decided to start working, maybe because of the upgrade to eslint? Autofixed with --fix
Showing
- .eslintrc.js 1 addition, 3 deletions.eslintrc.js
- package.json 1 addition, 4 deletionspackage.json
- src/.eslintrc.js 4 additions, 1 deletionsrc/.eslintrc.js
- src/components/green-flag.jsx 1 addition, 1 deletionsrc/components/green-flag.jsx
- src/components/library.jsx 1 addition, 1 deletionsrc/components/library.jsx
- src/components/sprite-selector.jsx 1 addition, 1 deletionsrc/components/sprite-selector.jsx
- src/components/stage.jsx 1 addition, 1 deletionsrc/components/stage.jsx
- src/components/stop-all.jsx 1 addition, 1 deletionsrc/components/stop-all.jsx
- src/containers/gui.jsx 1 addition, 1 deletionsrc/containers/gui.jsx
... | ... | @@ -18,9 +18,6 @@ |
"start": "webpack-dev-server --port $npm_package_config_port --content-base=./build", | ||
"test": "npm run lint && npm run build" | ||
}, | ||
"eslintConfig": { | ||
"extends": ["scratch"] | ||
}, | ||
"author": "Massachusetts Institute of Technology", | ||
"license": "BSD-3-Clause", | ||
"homepage": "https://github.com/LLK/scratch-gui#readme", | ||
... | ... | @@ -40,7 +37,7 @@ |
"babel-preset-es2015": "6.14.0", | ||
"babel-preset-react": "6.11.1", | ||
"copy-webpack-plugin": "3.0.1", | ||
"eslint": "3.5.0", | ||
"eslint": "3.8.1", | ||
"eslint-config-scratch": "^2.0.0", | ||
"eslint-plugin-react": "6.4.1", | ||
"gh-pages": "0.11.0", | ||
... | ... |
Please register or sign in to comment