Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Migrate to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
rdipardo committed May 2, 2024
1 parent 0349a95 commit 35b8958
Show file tree
Hide file tree
Showing 11 changed files with 1,076 additions and 2,045 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.jsdoc.json

This file was deleted.

54 changes: 32 additions & 22 deletions .eslintrc.json → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
{
"env": {
"browser": true,
"es6": true,
"jasmine": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"browser": "readonly",
"driver": "readonly",
"env": "readonly",
"tippy": "readonly",
"tocbot": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
module.exports = [
{
"files": [
"*.js",
"static/scripts/*.js",
"tests/specs/**"
],
"ignores": [
"eslint.*",
"node_modules/**",
"demo/**",
"static/scripts/third-party/*.js",
],
"languageOptions": {
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"browser": "readonly",
"driver": "readonly",
"env": "readonly",
"tippy": "readonly",
"tocbot": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
},
"rules": {
"accessor-pairs": "error",
Expand Down Expand Up @@ -187,4 +196,5 @@
"vars-on-top": "error",
"yoda": "error"
}
}
}
];
28 changes: 28 additions & 0 deletions eslint.jsdoc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import jsdoc from "eslint-plugin-jsdoc";

export default [
{
"files": [
"demo/src/*.js"
],
"plugins": {
jsdoc
},
"languageOptions": {
"globals": {
"Alive": "readonly",
"Environment": "readonly",
"Energy": "readonly",
"TAFFY": "readonly",
"Tutorial": "readonly"
}
},
"rules": {
"class-methods-use-this": "off",
"no-empty-function": "off",
"no-invalid-this": "off",
"jsdoc/require-param-description": "off",
"jsdoc/require-yields-check":"off"
}
}
];
Loading

0 comments on commit 35b8958

Please sign in to comment.