eslint-config-tui
Advanced tools
Comparing version 6.0.0-beta to 6.0.0
22
index.js
@@ -1,6 +0,18 @@ | ||
module.exports = { | ||
extends: ["./rules/possible", "./rules/suggestion", "./rules/layout"].map(require.resolve), | ||
env: { | ||
browser: true, | ||
const globals = require('globals'); | ||
const possibleConfig = require('./rules/possible'); | ||
const suggestionConfig = require('./rules/suggestion'); | ||
const layoutConfig = require('./rules/layout'); | ||
module.exports = [ | ||
...possibleConfig, | ||
...suggestionConfig, | ||
...layoutConfig, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
}, | ||
}; | ||
]; |
{ | ||
"name": "eslint-config-tui", | ||
"version": "6.0.0-beta", | ||
"version": "6.0.0", | ||
"description": "ESLint sharable config for TUI components", | ||
@@ -10,3 +10,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"eslint": "^9.6.0" | ||
"eslint": "^9.0.0", | ||
"globals":"^15.13.0" | ||
}, | ||
@@ -13,0 +14,0 @@ "repository": { |
@@ -6,2 +6,3 @@ # eslint-config-tui | ||
## Install | ||
``` | ||
@@ -12,14 +13,16 @@ $ npm install eslint eslint-config-tui --save-dev | ||
## Usage | ||
Add `.eslintrc.js` on your project's root directory. | ||
> **Note:** If you have configured your project to use ESM (ECMAScript Modules) format, you can also write your ESLint configuration using the filename `eslint.config.js`. | ||
```javascript | ||
// eslint.config.js | ||
import tuiConfig from "eslint-config-tui" | ||
// eslint.config.mjs | ||
import tui from 'eslint-config-tui'; | ||
module.exports = [ | ||
tuiConfig, | ||
export default [ | ||
tui, | ||
{ | ||
rules: { | ||
// Override rules or Add more rules | ||
} | ||
} | ||
}, | ||
}, | ||
]; | ||
@@ -31,2 +34,3 @@ ``` | ||
## Learn more | ||
[JavaScript Style Guide](https://github.com/nhn/fe.javascript/wiki) | ||
@@ -36,5 +40,4 @@ | ||
[Using a Shareable Configuration Package](https://eslint.org/docs/latest/use/configure/configuration-files#using-a-shareable-configuration-package) | ||
## License | ||
## License | ||
This software is licensed under the [MIT](https://github.com/nhn/tui.eslint.config/blob/master/LICENSE) © [NHN Cloud](https://github.com/nhn). |
@@ -27,3 +27,3 @@ module.exports = { | ||
"no-ex-assign": 2, | ||
"no-fallthrough": [2, { allowEmptyCase: false, reportUnusedFallthroughComment: true }], | ||
"no-fallthrough": [2, { allowEmptyCase: false }], | ||
"no-func-assign": 2, | ||
@@ -35,3 +35,3 @@ "no-import-assign": 2, | ||
"no-loss-of-precision": 2, | ||
"no-misleading-character-class": [2, { allowEscape: false }], | ||
"no-misleading-character-class": 2, | ||
"no-new-native-nonconstructor": 2, | ||
@@ -56,3 +56,3 @@ "no-new-symbol": 2, | ||
"no-unused-private-class-members": 2, | ||
"no-unused-vars": [2, {ignoreClassWithStaticInitBlock: false}], | ||
"no-unused-vars": 2, | ||
"no-use-before-define": [ | ||
@@ -59,0 +59,0 @@ 2, |
@@ -54,3 +54,3 @@ module.exports = { | ||
"no-extra-bind": 2, | ||
"no-extra-boolean-cast": [2, { enforceForInnerExpressions: true }], | ||
"no-extra-boolean-cast": 2, | ||
"no-extra-semi": 2, | ||
@@ -99,3 +99,2 @@ "no-floating-decimal": 2, | ||
"no-unused-expressions": 2, | ||
"no-useless-assignment": 2, | ||
"no-useless-call": 2, | ||
@@ -102,0 +101,0 @@ "no-useless-catch": 2, |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17553
8
321
2
40
2
1