Skip to content

Commit 215b604

Browse files
ESLint config + fix
1 parent 792e697 commit 215b604

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

eslint.config.mjs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,21 @@ const compat = new FlatCompat({
1414
allConfig: js.configs.all
1515
});
1616

17-
export default [{
18-
ignores: [
19-
"**/dist",
20-
"**/jest.config.cjs",
21-
"**/webpack.config.cjs",
22-
"test/index.js",
23-
"test/webpack.config.cjs",
24-
],
25-
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
17+
export default [ ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
2618
plugins: {
2719
"@typescript-eslint": typescriptEslint,
2820
},
29-
3021
languageOptions: {
3122
globals: {
3223
...globals.browser,
3324
...globals.commonjs,
3425
...globals.node,
3526
...globals.jest,
3627
},
37-
3828
parser: tsParser,
3929
ecmaVersion: "latest",
4030
sourceType: "module",
4131
},
42-
4332
rules: {
4433
"indent": ["error", "tab"],
4534
"linebreak-style": ["error", "unix"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"terser-webpack-plugin": "5.3.10"
4747
},
4848
"scripts": {
49-
"lint": "eslint src/*.ts test/*.js test/*.js",
49+
"lint": "eslint src/*.ts src/*.js test/*.js",
5050
"prettier": "prettier --write --single-quote --use-tabs test/*",
5151
"build:clean": "fcli remove ./dist",
5252
"build:amd": "fcli remove ./dist/amd && tsc --module amd --target es5 --outFile ./dist/amd/simplicite.js",

src/browser.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import simplicite from '../dist/esm/simplicite.js';
22

33
if (typeof globalThis !== 'undefined')
4-
// eslint-disable-next-line no-undef
54
globalThis.simplicite = simplicite;
65
else if (typeof self !== 'undefined')
76
self.simplicite = simplicite;

0 commit comments

Comments
 (0)