generated from oddbird/polyfill-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
88771bb
commit 77e1cf7
Showing
7 changed files
with
426 additions
and
718 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
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,62 @@ | ||
/* eslint-disable import/no-named-as-default-member */ | ||
|
||
import js from '@eslint/js'; | ||
import prettier from 'eslint-config-prettier'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'.git/*', | ||
'.vscode/*', | ||
'coverage/*', | ||
'dist/*', | ||
'node_modules/*', | ||
'playwright-report/*', | ||
], | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.stylistic, | ||
importPlugin.flatConfigs.recommended, | ||
importPlugin.flatConfigs.typescript, | ||
prettier, | ||
{ | ||
files: ['**/*.{js,mjs,cjs,ts,cts,mts}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.es2021, | ||
}, | ||
}, | ||
plugins: { 'simple-import-sort': simpleImportSort }, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
project: 'tsconfig.json', | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'no-warning-comments': ['warn', { terms: ['todo', 'fixme', '@@@'] }], | ||
'simple-import-sort/imports': 'warn', | ||
'simple-import-sort/exports': 'warn', | ||
'import/first': 'warn', | ||
'import/newline-after-import': 'warn', | ||
'import/no-duplicates': ['error', { 'prefer-inline': true }], | ||
'import/order': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['src/**/*.{js,mjs,cjs,ts,cts,mts}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.es2021, | ||
}, | ||
}, | ||
}, | ||
]; |
Large diffs are not rendered by default.
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
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