diff --git a/.eslintrc.yml b/.eslintrc.yml index 5e96617..aa3fa82 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,19 +1,19 @@ root: true extends: - - plugin:@mysticatea/es2020 + - plugin:@eslint-community/mysticatea/es2020 rules: - "@mysticatea/prettier": "off" + "@eslint-community/mysticatea/prettier": "off" overrides: - files: - src/**/*.js - test/**/*.js extends: - - plugin:@mysticatea/+modules + - plugin:@eslint-community/mysticatea/+modules rules: init-declarations: "off" - "@mysticatea/node/no-unsupported-features/es-syntax": + "@eslint-community/mysticatea/node/no-unsupported-features/es-syntax": - error - ignores: [modules] diff --git a/package.json b/package.json index 7955346..0e3bbd4 100644 --- a/package.json +++ b/package.json @@ -19,17 +19,17 @@ "./package.json": "./package.json" }, "dependencies": { - "eslint-visitor-keys": "^2.1.0" + "eslint-visitor-keys": "^3.3.0" }, "devDependencies": { - "@mysticatea/eslint-plugin": "^13.0.0", - "dot-prop": "^4.2.1", + "@eslint-community/eslint-plugin-mysticatea": "^15.2.0", + "dot-prop": "^6.0.1", "eslint": "^7.32.0", "esm": "^3.2.25", "espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444", - "mocha": "^6.2.3", + "mocha": "^8.4.0", "npm-run-all": "^4.1.5", - "nyc": "^14.1.1", + "nyc": "^15.1.0", "opener": "^1.5.2", "prettier": "2.7.1", "rimraf": "^3.0.2", @@ -53,7 +53,7 @@ "format": "npm run -s format:prettier -- --write", "format:prettier": "prettier docs/.vuepress/config.js src/**/*.js test/**/*.js rollup.config.js .vscode/*.json *.json .github/**/*.yml *.yml docs/**/*.md *.md", "format:check": "npm run -s format:prettier -- --check", - "lint": "eslint docs/.vuepress/config.js src test rollup.config.js", + "lint": "eslint .", "test": "nyc mocha --reporter dot \"test/*.js\"", "preversion": "npm test && npm run -s build", "postversion": "git push && git push --tags", diff --git a/src/get-static-value.js b/src/get-static-value.js index f3a3643..3268f5c 100644 --- a/src/get-static-value.js +++ b/src/get-static-value.js @@ -228,7 +228,7 @@ const operations = Object.freeze({ case "%": return { value: left.value % right.value } case "**": - return { value: Math.pow(left.value, right.value) } + return { value: left.value**right.value } case "|": return { value: left.value | right.value } case "^": diff --git a/src/has-side-effect.js b/src/has-side-effect.js index 188f1ca..2d781d6 100644 --- a/src/has-side-effect.js +++ b/src/has-side-effect.js @@ -1,4 +1,4 @@ -import evk from "eslint-visitor-keys" +import * as evk from "eslint-visitor-keys" const typeConversionBinaryOps = Object.freeze( new Set([