-
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.
- Loading branch information
1 parent
e9a205f
commit c0d6c40
Showing
11 changed files
with
45 additions
and
108 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 |
---|---|---|
@@ -1,11 +1,4 @@ | ||
import globals from 'globals' | ||
import pluginJs from '@eslint/js' | ||
import tseslint from 'typescript-eslint' | ||
import baseConfig from './eslint/base.mjs' | ||
import typescriptConfig from './eslint/typescript.mjs' | ||
|
||
export default [ | ||
{ extends: ['./eslint/_base.js'] }, | ||
|
||
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
] | ||
export default [...baseConfig, ...typescriptConfig] |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Base settings | ||
|
||
import js from '@eslint/js' | ||
import eslintConfigPrettier from 'eslint-config-prettier' | ||
import importPlugin from 'eslint-plugin-import' | ||
|
||
export default [ | ||
// Extend recommended rules | ||
{ | ||
plugins: { import: importPlugin }, | ||
rules: { | ||
...importPlugin.configs['recommended'].rules, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.js'], | ||
rules: { | ||
...js.configs.recommended.rules, | ||
'no-unused-vars': 'warn', | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
] |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// react.js | ||
import pluginReact from 'eslint-plugin-react' | ||
|
||
export default [...pluginReact.configs.flat.all] |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Typescript | ||
|
||
import tseslint from 'typescript-eslint' | ||
|
||
export default [...tseslint.configs.recommended] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.