Skip to content

Commit

Permalink
chore(pkg): use @kocal/eslint-config-generator and update ESLint pack…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
Kocal committed May 30, 2021
1 parent e30e120 commit a202334
Show file tree
Hide file tree
Showing 4 changed files with 693 additions and 514 deletions.
16 changes: 9 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
module.exports = {
root: true,
extends: ['airbnb-base', 'plugin:prettier/recommended'],
settings: {
'import/resolver': ['node'],
},
};
const { generateConfig } = require('@kocal/eslint-config-generator');

const config = generateConfig();

// We don't need @babel/eslint-parser as we don't use Babel
delete config.parser;
delete config.parserOptions;

module.exports = config;
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- run: yarn install --frozen-lockfile

- run: yarn eslint
- run: yarn lint

test:
runs-on: ubuntu-latest
Expand Down
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@
"author": "Hugo Alliaume <[email protected]>",
"license": "MIT",
"scripts": {
"eslint": "eslint *.js src tests --ext .js,.vue",
"lint": "eslint *.js src tests --ext .js,.vue",
"prettier": "prettier"
},
"peerDependencies": {
"cypress": ">=4.0.0"
},
"devDependencies": {
"@kocal/eslint-config-generator": "^2.0.3",
"cypress": "^7.4.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-chai-friendly": "^0.6.0",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint": "^7.27.0",
"eslint-plugin-chai-friendly": "^0.7.1",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-mocha": "^9.0.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"prettier": "^2.0.5"
Expand Down
Loading

0 comments on commit a202334

Please sign in to comment.