-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
10 changed files
with
177 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,17 +1,25 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const confusingBrowserGlobals = require('confusing-browser-globals'); | ||
import globals from 'globals'; | ||
import confusingBrowserGlobals from 'confusing-browser-globals'; | ||
import eslintConfigXo from './index.js'; | ||
|
||
module.exports = { | ||
extends: path.join(__dirname, 'index.js'), | ||
env: { | ||
node: false, | ||
browser: true, | ||
}, | ||
rules: { | ||
'no-restricted-globals': [ | ||
'error', | ||
...confusingBrowserGlobals, | ||
], | ||
const [config] = eslintConfigXo; | ||
|
||
export default [ | ||
{ | ||
...config, | ||
languageOptions: { | ||
...config.languageOptions, | ||
globals: { | ||
...globals.es2021, | ||
...globals.browser, | ||
}, | ||
}, | ||
rules: { | ||
...config.rules, | ||
'no-restricted-globals': [ | ||
'error', | ||
...confusingBrowserGlobals, | ||
], | ||
}, | ||
}, | ||
}; | ||
]; |
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 @@ | ||
export {default} from './index.js'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import eslintConfigXoBrowser from './browser.js'; | ||
|
||
const [config] = eslintConfigXoBrowser; | ||
|
||
export default [ | ||
{ | ||
...config, | ||
rules: { | ||
...config.rules, | ||
indent: [ | ||
'error', | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
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,19 @@ | ||
import eslintConfigXo from './index.js'; | ||
|
||
const [config] = eslintConfigXo; | ||
|
||
export default [ | ||
{ | ||
...config, | ||
rules: { | ||
...config.rules, | ||
indent: [ | ||
'error', | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
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