generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style: change trailingComma config to es5 * chore: add simple-import-sort settings
- Loading branch information
Showing
10 changed files
with
34 additions
and
40 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"arrowParens": "always", | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
"trailingComma": "es5" | ||
} |
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 |
---|---|---|
@@ -1,41 +1,35 @@ | ||
// @ts-check | ||
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */ | ||
import eslint from '@eslint/js' | ||
import eslintConfigPrettier from 'eslint-config-prettier' | ||
import prettier from 'eslint-config-prettier' | ||
import node from 'eslint-plugin-n' | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort' | ||
import vitest from 'eslint-plugin-vitest' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ ignores: ['node_modules/**', 'dist/**'] }, | ||
eslint.configs.recommended, | ||
// eslint-plugin-n | ||
// Node.js | ||
{ | ||
...node.configs['flat/recommended-script'], | ||
rules: { | ||
'n/no-missing-import': ['off'] | ||
} | ||
rules: { 'n/no-missing-import': ['off'] }, | ||
}, | ||
// typescript-eslint | ||
// TypeScript | ||
...tseslint.configs.recommendedTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: './tsconfig.lint.json' | ||
} | ||
} | ||
}, | ||
{ languageOptions: { parserOptions: { project: './tsconfig.lint.json' } } }, | ||
// Prettier | ||
eslintConfigPrettier, | ||
// vitest | ||
prettier, | ||
// Vitest | ||
{ ...vitest.configs.recommended, files: ['test/**'] }, | ||
// simple-import-sort | ||
{ | ||
files: ['test/**'], | ||
plugins: { | ||
vitest | ||
}, | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
plugins: { 'simple-import-sort': simpleImportSort }, | ||
rules: { | ||
...vitest.configs.recommended.rules | ||
} | ||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'error', | ||
}, | ||
} | ||
) |
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