-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
8 changed files
with
558 additions
and
267 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import parser from '@babel/eslint-parser'; | ||
import globals from 'globals'; | ||
|
||
import index from './index.mjs'; | ||
import oldConfig from '../browser-config.js'; | ||
import html from 'eslint-plugin-html'; | ||
import importPlugin from 'eslint-plugin-import'; | ||
import sortClassMembersPlugin from 'eslint-plugin-sort-class-members'; | ||
|
||
export default [ | ||
...index, | ||
{ | ||
plugins: { | ||
html, | ||
'import': importPlugin, | ||
'sort-class-members': sortClassMembersPlugin | ||
}, | ||
languageOptions: { | ||
parser, | ||
parserOptions: oldConfig.parserOptions, | ||
globals: { | ||
...globals.browser, | ||
...oldConfig.globals | ||
}, | ||
}, | ||
|
||
'rules': oldConfig.rules | ||
} | ||
]; |
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,6 @@ | ||
import js from '@eslint/js'; | ||
import oldConfig from '../index.js'; | ||
|
||
export default [js.configs.recommended, { | ||
rules: oldConfig.rules, | ||
}]; |
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,11 @@ | ||
import browserConfig from './browser-config.mjs'; | ||
import oldConfig from '../lit-config.js'; | ||
import lit from "eslint-plugin-lit" | ||
export default [ | ||
...browserConfig, | ||
{ | ||
plugins: {lit} | ||
}, | ||
{ rules:oldConfig.rules }, | ||
...oldConfig["overrides"].map(c => ({...c, files:[c.files]})) | ||
]; |
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,17 @@ | ||
import globals from 'globals'; | ||
|
||
import index from './index.mjs'; | ||
import oldConfig from '../node-config.js'; | ||
export default [ | ||
...index, | ||
{ | ||
'languageOptions': { | ||
'parserOptions': oldConfig.parserOptions, | ||
'globals': { | ||
...globals.node, | ||
...globals.es2024 | ||
}, | ||
}, | ||
'rules': oldConfig.rules | ||
} | ||
]; |
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,22 @@ | ||
import globals from 'globals'; | ||
|
||
import index from './index.mjs'; | ||
import oldConfig from '../react-config.js'; | ||
import react from 'eslint-plugin-react' | ||
|
||
export default [ | ||
...index, | ||
{ | ||
'languageOptions': { | ||
'parserOptions': oldConfig.parserOptions, | ||
'globals': { | ||
...globals.browser, | ||
...globals.es2015, | ||
...globals.jest, | ||
...globals.node, | ||
}, | ||
'ecmaVersion': 6, | ||
}, | ||
'plugins': {react} | ||
} | ||
]; |
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,16 @@ | ||
import globals from 'globals'; | ||
|
||
import litConfig from './lit-config.mjs'; | ||
import oldConfig from '../testing-config.js'; | ||
|
||
export default [ | ||
...litConfig, | ||
{ | ||
'languageOptions': { | ||
'globals': { | ||
...globals.mocha, | ||
} | ||
}, | ||
'rules': oldConfig.rules | ||
} | ||
]; |
Oops, something went wrong.