Skip to content

Commit

Permalink
build(eslint): add dg-scripts eslint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Sep 24, 2021
1 parent 4da3e7d commit cbb422c
Show file tree
Hide file tree
Showing 4 changed files with 845 additions and 345 deletions.
11 changes: 0 additions & 11 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,3 @@ public

# don't lint nyc coverage output
coverage

# don't lint gatsby node api
gatsby-node.js

# don't lint jest config files
__mocks__
jest.*.js

# don't lint scripts
scripts

41 changes: 1 addition & 40 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"import",
"jsx-a11y",
"react",
"react-hooks",
"@typescript-eslint"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"import/no-unresolved": 0,
"react/prop-types": 0,
"react/jsx-props-no-spreading": 0
}
"extends": "@dg-scripts"
}
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"devDependencies": {
"@babel/core": "^7.15.5",
"@dg-scripts/eslint-config": "^1.1.1",
"@octokit/types": "^6.28.1",
"@react-spring/types": "^9.2.4",
"@testing-library/dom": "^8.5.0",
Expand All @@ -59,20 +60,12 @@
"@types/react-dom": "^17.0.9",
"@types/react-helmet": "^6.1.2",
"@types/react-test-renderer": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"autoprefixer": "^10.3.4",
"babel-jest": "^27.2.0",
"babel-preset-gatsby": "^1.14.0",
"concurrently": "^6.2.1",
"core-js": "^3.17.3",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.2",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-webpack-plugin": "^2.5.4",
"gatsby-plugin-antd": "^2.2.0",
"gatsby-plugin-catch-links": "^3.14.0",
Expand Down
Loading

0 comments on commit cbb422c

Please sign in to comment.