-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update to eslint 9 and modern config (#700)
- Loading branch information
Showing
34 changed files
with
533 additions
and
852 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,3 @@ jobs: | |
- name: Linting | ||
if: ${{ matrix.node-version == '18' }} | ||
run: yarn lint | ||
- name: Coverage | ||
run: yarn coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ dist | |
|
||
# Testing | ||
reports | ||
coverage | ||
*.lcov | ||
.nyc_output | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,4 @@ module.exports = [ | |
gzip: false, | ||
brotli: false, | ||
}, | ||
]; | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ node_modules | |
.nuxt | ||
.vscode | ||
.DS_Store | ||
coverage | ||
dist | ||
sw.* | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import base from 'eslint-config-rchl-base' | ||
import typescript from 'eslint-config-rchl-typescript' | ||
import vue from 'eslint-config-rchl-vue' | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ | ||
ignores: [ | ||
'**/.nuxt/', | ||
'**/dist/', | ||
'**/templates/', | ||
'node_modules/', | ||
], | ||
}, | ||
...base, | ||
...typescript, | ||
...vue, | ||
{ | ||
rules: { | ||
'@stylistic/indent': [ | ||
'error', 2, { | ||
SwitchCase: 1, | ||
}, | ||
], | ||
'@stylistic/semi': ['error', 'never'], | ||
'@stylistic/space-before-function-paren': ['error', 'always'], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
rules: { | ||
'@stylistic/ts/indent': [ | ||
'error', 2, { | ||
SwitchCase: 1, | ||
FunctionDeclaration: { parameters: 'first' }, | ||
FunctionExpression: { parameters: 'first' }, | ||
CallExpression: { arguments: 'first' }, | ||
}, | ||
], | ||
'@stylistic/ts/member-delimiter-style': [ | ||
'error', { | ||
multiline: { | ||
delimiter: 'none', | ||
}, | ||
}, | ||
], | ||
'@stylistic/ts/semi': ['error', 'never'], | ||
'@stylistic/ts/space-before-function-paren': ['error', 'always'], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.vue'], | ||
rules: { | ||
'vue/html-indent': ['error', 2], | ||
'vue/script-indent': ['error', 2, { switchCase: 1 }], | ||
}, | ||
}, | ||
{ | ||
files: ['**/.nuxt/*.js'], | ||
rules: { | ||
'@stylistic/comma-spacing': 'off', | ||
'@stylistic/key-spacing': 'off', | ||
'@stylistic/object-curly-spacing': 'off', | ||
'@stylistic/quote-props': 'off', | ||
'@stylistic/quotes': 'off', | ||
}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.