Skip to content

Commit 004cd67

Browse files
committed
chore: move all eslint rules to root
1 parent 940d9d0 commit 004cd67

File tree

15 files changed

+726
-59
lines changed

15 files changed

+726
-59
lines changed

.eslintrc.js

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,38 @@ module.exports = {
22
root: true,
33
ignorePatterns: ['cli/', '.cache/', 'public/'],
44
extends: [
5+
'react-app',
6+
'react-app/jest',
57
'eslint:recommended',
68
'plugin:react/recommended',
79
'plugin:github/react',
810
'plugin:primer-react/recommended',
911
'plugin:react-hooks/recommended',
12+
'plugin:import/recommended',
13+
'prettier',
1014
],
11-
settings: {
12-
react: {
13-
version: 'detect',
14-
},
15+
rules: {
16+
'react/prop-types': 'off',
1517
},
1618
overrides: [
17-
{
18-
files: ['src/**'],
19-
parserOptions: {
20-
ecmaFeatures: {
21-
jsx: true,
22-
},
23-
},
24-
env: {
25-
commonjs: true,
26-
es2022: true,
27-
browser: true,
28-
node: false,
29-
},
30-
rules: {
31-
'max-len': 'off',
32-
},
33-
},
19+
// {
20+
// files: ['**/src/**/*.js'],
21+
// // env: {
22+
// // commonjs: false,
23+
// // browser: true,
24+
// // },
25+
// // parserOptions: {
26+
// // sourceType: 'module',
27+
// // },
28+
// },
29+
// {
30+
// files: ['**/gatsby-*.js'],
31+
// // env: {node: true},
32+
// },
33+
// {
34+
// files: ['**/test/*', '**/__tests__/*'],
35+
// env: {jest: true},
36+
// },
3437
{
3538
files: ['src/shared.js'],
3639
rules: {

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
!/.gitignore
1313
!/.npmrc
1414
!/.nvmrc
15-
!/.prettierIgnore
15+
!/.prettierignore
16+
!/.prettierrc.js
1617
!/.release-please-manifest.json
1718
!/.reuse/
18-
!/*.md
1919
!/bin/
2020
!/CHANGELOG*
2121
!/CODE_OF_CONDUCT.md

.prettierrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const config = require('@github/prettier-config')
2+
3+
module.exports = {
4+
...config,
5+
proseWrap: 'never',
6+
}

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports.onCreateNode = ({node, actions, getNode}) => {
2121
}
2222
}
2323

24-
exports.onCreateWebpackConfig = ({stage, actions}) => {
24+
exports.onCreateWebpackConfig = ({actions}) => {
2525
actions.setWebpackConfig({
2626
resolve: {
2727
alias: {

0 commit comments

Comments
 (0)