-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to ESM and flat ESLint config
- Loading branch information
1 parent
85eb502
commit 9180dd6
Showing
18 changed files
with
111 additions
and
58 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,5 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env" | ||
["@babel/preset-env", { "modules": false }] | ||
] | ||
} |
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,58 @@ | ||
import globals from 'globals'; | ||
import takiyonConfig from 'eslint-config-takiyon'; | ||
|
||
import webpackConfig from './webpack.config.test.js'; | ||
|
||
export default [ | ||
...takiyonConfig, | ||
{ | ||
files: [ | ||
'**/*.{js,jsx}', | ||
], | ||
ignores: ['./node_modules/**/*'], | ||
settings: { | ||
// Account for webpack.resolve.module imports | ||
'import/resolver': { | ||
// "Fixes Node resolution issues in ESLint v6 | ||
// https://github.com/benmosher/eslint-plugin-import/issues/1396 | ||
node: {}, | ||
webpack: { | ||
config: webpackConfig, | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ | ||
// Front-end files | ||
files: [ | ||
'examples/**/*.js', | ||
'src/**/*.js', | ||
'test/**/*.js', | ||
], | ||
languageOptions: { | ||
globals: { | ||
APP_NAME: 'readonly', | ||
...globals.browser, | ||
}, | ||
}, | ||
}, | ||
{ | ||
// Test files | ||
files: ['test/**/*.js'], | ||
languageOptions: { | ||
globals: { | ||
APP_NAME: 'readonly', | ||
...globals.mocha, | ||
}, | ||
}, | ||
}, | ||
{ | ||
// Build files | ||
files: ['*.js'], | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
]; |
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
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,3 +1,3 @@ | ||
import D3Funnel from './d3-funnel/D3Funnel'; | ||
import D3Funnel from './d3-funnel/D3Funnel.js'; | ||
|
||
export default D3Funnel; |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Because JSDom does not support SVGs properly this must run in a browser | ||
// https://github.com/jsdom/jsdom/issues/918 | ||
|
||
import './d3-funnel/Colorizer'; | ||
import './d3-funnel/D3Funnel'; | ||
import './d3-funnel/Navigator'; | ||
import './d3-funnel/Utils'; | ||
import './d3-funnel/Colorizer.js'; | ||
import './d3-funnel/D3Funnel.js'; | ||
import './d3-funnel/Navigator.js'; | ||
import './d3-funnel/Utils.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