Skip to content

Commit

Permalink
feat: rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Dec 11, 2021
1 parent 09a13f2 commit 100e3cf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions packages/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ module.exports = {
'no-console': 'off',
},
},
{
files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'],
rules: {
'no-unused-expressions': 'off',
},
},
],
rules: {
// import
Expand Down Expand Up @@ -179,6 +185,17 @@ module.exports = {
'template-curly-spacing': 'error',
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'generator-star-spacing': 'off',
'spaced-comment': ['error', 'always', {
line: {
markers: ['/'],
exceptions: ['/', '#'],
},
block: {
markers: ['!'],
exceptions: ['*'],
balanced: true,
},
}],

// best-practice
'array-callback-return': 'error',
Expand Down
1 change: 0 additions & 1 deletion packages/next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
plugins: ['jsx-a11y'],
rules: {
'import/no-anonymous-default-export': 'warn',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'jsx-a11y/alt-text': [
'warn',
Expand Down
1 change: 1 addition & 0 deletions packages/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
'error',
'prefer-double',
],
'react/react-in-jsx-scope': 'off',
},
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-namespace': 'off',
},
}

0 comments on commit 100e3cf

Please sign in to comment.