ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
21
home/ags/node_modules/eslint-plugin-es-x/LICENSE
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Toru Nagashima
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
47
home/ags/node_modules/eslint-plugin-es-x/README.md
generated
vendored
Normal file
47
home/ags/node_modules/eslint-plugin-es-x/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# eslint-plugin-es-x
|
||||
|
||||
[](https://www.npmjs.com/package/eslint-plugin-es-x)
|
||||
[](http://www.npmtrends.com/eslint-plugin-es-x)
|
||||
[](https://github.com/eslint-community/eslint-plugin-es-x/actions)
|
||||
|
||||
ESLint plugin which disallows each ECMAScript syntax.
|
||||
|
||||
> Forked from [eslint-plugin-es](https://github.com/mysticatea/eslint-plugin-es). As the original repository seems [no longer maintained](https://github.com/mysticatea/eslint-plugin-es/issues/72).
|
||||
|
||||
## 🏁 Goal
|
||||
|
||||
[Espree](https://github.com/eslint/espree#readme), the default parser of [ESLint](https://eslint.org/), has supported `ecmaVersion` option.
|
||||
However, the error messages of new syntax are not readable (e.g., "unexpected token" or something like).
|
||||
|
||||
When we use this plugin along with the latest `ecmaVersion` option value, it tells us the readable error message for the new syntax, such as "ES2020 BigInt is forbidden."
|
||||
Plus, this plugin lets us disable each syntactic feature individually.
|
||||
|
||||
## 📖 Usage
|
||||
|
||||
See [documentation](https://eslint-community.github.io/eslint-plugin-es-x/)
|
||||
|
||||
## 🚥 Semantic Versioning Policy
|
||||
|
||||
This plugin follows [semantic versioning](http://semver.org/) and [ESLint's semantic versioning policy](https://github.com/eslint/eslint#semantic-versioning-policy).
|
||||
|
||||
- We will release a new minor version to add new rules when TC39 decided to advance proposals to Stage 4. In the minor releases, we don't update configs.
|
||||
- We will release a new major version to update configs when new ECMAScript snapshots are available.
|
||||
|
||||
## 📰 Changelog
|
||||
|
||||
See [releases](https://github.com/eslint-community/eslint-plugin-es-x/releases).
|
||||
|
||||
## ❤️ Contributing
|
||||
|
||||
Welcome contributing!
|
||||
|
||||
Please use GitHub's Issues/PRs.
|
||||
|
||||
### Development Tools
|
||||
|
||||
- `npm test` runs tests and measures coverage.
|
||||
- `npm run clean` removes the coverage result of `npm test` command.
|
||||
- `npm run coverage` shows the coverage result of the last `npm test` command.
|
||||
- `npm run docs:build` builds documentation.
|
||||
- `npm run docs:watch` builds documentation on each file change.
|
||||
- `npm run watch` runs tests on each file change.
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2015-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2015-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {},
|
||||
}
|
||||
94
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2015.js
generated
vendored
Normal file
94
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2015.js
generated
vendored
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-array-from": "error",
|
||||
"es-x/no-array-of": "error",
|
||||
"es-x/no-array-prototype-copywithin": "error",
|
||||
"es-x/no-array-prototype-entries": "error",
|
||||
"es-x/no-array-prototype-fill": "error",
|
||||
"es-x/no-array-prototype-find": "error",
|
||||
"es-x/no-array-prototype-findindex": "error",
|
||||
"es-x/no-array-prototype-keys": "error",
|
||||
"es-x/no-array-prototype-values": "error",
|
||||
"es-x/no-arrow-functions": "error",
|
||||
"es-x/no-binary-numeric-literals": "error",
|
||||
"es-x/no-block-scoped-functions": "error",
|
||||
"es-x/no-block-scoped-variables": "error",
|
||||
"es-x/no-classes": "error",
|
||||
"es-x/no-computed-properties": "error",
|
||||
"es-x/no-default-parameters": "error",
|
||||
"es-x/no-destructuring": "error",
|
||||
"es-x/no-for-of-loops": "error",
|
||||
"es-x/no-generators": "error",
|
||||
"es-x/no-map": "error",
|
||||
"es-x/no-math-acosh": "error",
|
||||
"es-x/no-math-asinh": "error",
|
||||
"es-x/no-math-atanh": "error",
|
||||
"es-x/no-math-cbrt": "error",
|
||||
"es-x/no-math-clz32": "error",
|
||||
"es-x/no-math-cosh": "error",
|
||||
"es-x/no-math-expm1": "error",
|
||||
"es-x/no-math-fround": "error",
|
||||
"es-x/no-math-hypot": "error",
|
||||
"es-x/no-math-imul": "error",
|
||||
"es-x/no-math-log10": "error",
|
||||
"es-x/no-math-log1p": "error",
|
||||
"es-x/no-math-log2": "error",
|
||||
"es-x/no-math-sign": "error",
|
||||
"es-x/no-math-sinh": "error",
|
||||
"es-x/no-math-tanh": "error",
|
||||
"es-x/no-math-trunc": "error",
|
||||
"es-x/no-modules": "error",
|
||||
"es-x/no-new-target": "error",
|
||||
"es-x/no-number-epsilon": "error",
|
||||
"es-x/no-number-isfinite": "error",
|
||||
"es-x/no-number-isinteger": "error",
|
||||
"es-x/no-number-isnan": "error",
|
||||
"es-x/no-number-issafeinteger": "error",
|
||||
"es-x/no-number-maxsafeinteger": "error",
|
||||
"es-x/no-number-minsafeinteger": "error",
|
||||
"es-x/no-number-parsefloat": "error",
|
||||
"es-x/no-number-parseint": "error",
|
||||
"es-x/no-object-assign": "error",
|
||||
"es-x/no-object-getownpropertysymbols": "error",
|
||||
"es-x/no-object-is": "error",
|
||||
"es-x/no-object-setprototypeof": "error",
|
||||
"es-x/no-object-super-properties": "error",
|
||||
"es-x/no-octal-numeric-literals": "error",
|
||||
"es-x/no-promise": "error",
|
||||
"es-x/no-property-shorthands": "error",
|
||||
"es-x/no-proxy": "error",
|
||||
"es-x/no-reflect": "error",
|
||||
"es-x/no-regexp-prototype-flags": "error",
|
||||
"es-x/no-regexp-u-flag": "error",
|
||||
"es-x/no-regexp-y-flag": "error",
|
||||
"es-x/no-rest-parameters": "error",
|
||||
"es-x/no-set": "error",
|
||||
"es-x/no-spread-elements": "error",
|
||||
"es-x/no-string-fromcodepoint": "error",
|
||||
"es-x/no-string-prototype-codepointat": "error",
|
||||
"es-x/no-string-prototype-endswith": "error",
|
||||
"es-x/no-string-prototype-includes": "error",
|
||||
"es-x/no-string-prototype-normalize": "error",
|
||||
"es-x/no-string-prototype-repeat": "error",
|
||||
"es-x/no-string-prototype-startswith": "error",
|
||||
"es-x/no-string-raw": "error",
|
||||
"es-x/no-subclassing-builtins": "error",
|
||||
"es-x/no-symbol": "error",
|
||||
"es-x/no-template-literals": "error",
|
||||
"es-x/no-typed-arrays": "error",
|
||||
"es-x/no-unicode-codepoint-escapes": "error",
|
||||
"es-x/no-weak-map": "error",
|
||||
"es-x/no-weak-set": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2016-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2016-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: { "es-x/no-intl-getcanonicallocales": "error" },
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2016.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2016.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-array-prototype-includes": "error",
|
||||
"es-x/no-exponential-operators": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2017-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2017-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: { "es-x/no-intl-datetimeformat-prototype-formattoparts": "error" },
|
||||
}
|
||||
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2017.js
generated
vendored
Normal file
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2017.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-async-functions": "error",
|
||||
"es-x/no-atomics": "error",
|
||||
"es-x/no-object-entries": "error",
|
||||
"es-x/no-object-getownpropertydescriptors": "error",
|
||||
"es-x/no-object-values": "error",
|
||||
"es-x/no-shared-array-buffer": "error",
|
||||
"es-x/no-string-prototype-padstart-padend": "error",
|
||||
"es-x/no-trailing-function-commas": "error",
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2018-intl-api.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2018-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-intl-numberformat-prototype-formattoparts": "error",
|
||||
"es-x/no-intl-pluralrules": "error",
|
||||
},
|
||||
}
|
||||
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2018.js
generated
vendored
Normal file
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2018.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-async-iteration": "error",
|
||||
"es-x/no-malformed-template-literals": "error",
|
||||
"es-x/no-promise-prototype-finally": "error",
|
||||
"es-x/no-regexp-lookbehind-assertions": "error",
|
||||
"es-x/no-regexp-named-capture-groups": "error",
|
||||
"es-x/no-regexp-s-flag": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes": "error",
|
||||
"es-x/no-rest-spread-properties": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2019-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2019-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {},
|
||||
}
|
||||
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2019.js
generated
vendored
Normal file
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2019.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-array-prototype-flat": "error",
|
||||
"es-x/no-json-superset": "error",
|
||||
"es-x/no-object-fromentries": "error",
|
||||
"es-x/no-optional-catch-binding": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2019": "error",
|
||||
"es-x/no-string-prototype-trimstart-trimend": "error",
|
||||
"es-x/no-symbol-prototype-description": "error",
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2020-intl-api.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2020-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-intl-locale": "error",
|
||||
"es-x/no-intl-relativetimeformat": "error",
|
||||
},
|
||||
}
|
||||
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2020.js
generated
vendored
Normal file
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2020.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-bigint": "error",
|
||||
"es-x/no-dynamic-import": "error",
|
||||
"es-x/no-export-ns-from": "error",
|
||||
"es-x/no-global-this": "error",
|
||||
"es-x/no-import-meta": "error",
|
||||
"es-x/no-nullish-coalescing-operators": "error",
|
||||
"es-x/no-optional-chaining": "error",
|
||||
"es-x/no-promise-all-settled": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2020": "error",
|
||||
"es-x/no-string-prototype-matchall": "error",
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2021-intl-api.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2021-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-intl-datetimeformat-prototype-formatrange": "error",
|
||||
"es-x/no-intl-displaynames": "error",
|
||||
"es-x/no-intl-listformat": "error",
|
||||
},
|
||||
}
|
||||
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2021.js
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2021.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-logical-assignment-operators": "error",
|
||||
"es-x/no-numeric-separators": "error",
|
||||
"es-x/no-promise-any": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2021": "error",
|
||||
"es-x/no-string-prototype-replaceall": "error",
|
||||
"es-x/no-weakrefs": "error",
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2022-intl-api.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2022-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-intl-segmenter": "error",
|
||||
"es-x/no-intl-supportedvaluesof": "error",
|
||||
},
|
||||
}
|
||||
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2022.js
generated
vendored
Normal file
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2022.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-arbitrary-module-namespace-names": "error",
|
||||
"es-x/no-array-string-prototype-at": "error",
|
||||
"es-x/no-class-fields": "error",
|
||||
"es-x/no-class-static-block": "error",
|
||||
"es-x/no-error-cause": "error",
|
||||
"es-x/no-object-hasown": "error",
|
||||
"es-x/no-private-in": "error",
|
||||
"es-x/no-regexp-d-flag": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2022": "error",
|
||||
"es-x/no-top-level-await": "error",
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2023-intl-api.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2023-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-intl-numberformat-prototype-formatrange": "error",
|
||||
"es-x/no-intl-numberformat-prototype-formatrangetoparts": "error",
|
||||
"es-x/no-intl-pluralrules-prototype-selectrange": "error",
|
||||
},
|
||||
}
|
||||
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2023.js
generated
vendored
Normal file
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es2023.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-array-prototype-findlast-findlastindex": "error",
|
||||
"es-x/no-array-prototype-toreversed": "error",
|
||||
"es-x/no-array-prototype-tosorted": "error",
|
||||
"es-x/no-array-prototype-tospliced": "error",
|
||||
"es-x/no-array-prototype-with": "error",
|
||||
"es-x/no-hashbang": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2023": "error",
|
||||
},
|
||||
}
|
||||
45
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es5.js
generated
vendored
Normal file
45
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-es5.js
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-accessor-properties": "error",
|
||||
"es-x/no-array-isarray": "error",
|
||||
"es-x/no-array-prototype-every": "error",
|
||||
"es-x/no-array-prototype-filter": "error",
|
||||
"es-x/no-array-prototype-foreach": "error",
|
||||
"es-x/no-array-prototype-indexof": "error",
|
||||
"es-x/no-array-prototype-lastindexof": "error",
|
||||
"es-x/no-array-prototype-map": "error",
|
||||
"es-x/no-array-prototype-reduce": "error",
|
||||
"es-x/no-array-prototype-reduceright": "error",
|
||||
"es-x/no-array-prototype-some": "error",
|
||||
"es-x/no-date-now": "error",
|
||||
"es-x/no-function-prototype-bind": "error",
|
||||
"es-x/no-json": "error",
|
||||
"es-x/no-keyword-properties": "error",
|
||||
"es-x/no-object-create": "error",
|
||||
"es-x/no-object-defineproperties": "error",
|
||||
"es-x/no-object-defineproperty": "error",
|
||||
"es-x/no-object-freeze": "error",
|
||||
"es-x/no-object-getownpropertydescriptor": "error",
|
||||
"es-x/no-object-getownpropertynames": "error",
|
||||
"es-x/no-object-getprototypeof": "error",
|
||||
"es-x/no-object-isextensible": "error",
|
||||
"es-x/no-object-isfrozen": "error",
|
||||
"es-x/no-object-issealed": "error",
|
||||
"es-x/no-object-keys": "error",
|
||||
"es-x/no-object-preventextensions": "error",
|
||||
"es-x/no-object-seal": "error",
|
||||
"es-x/no-string-prototype-trim": "error",
|
||||
"es-x/no-trailing-commas": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-esnext-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-esnext-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {},
|
||||
}
|
||||
29
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-esnext.js
generated
vendored
Normal file
29
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-new-in-esnext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-set-prototype-difference": "error",
|
||||
"es-x/no-set-prototype-intersection": "error",
|
||||
"es-x/no-set-prototype-isdisjointfrom": "error",
|
||||
"es-x/no-set-prototype-issubsetof": "error",
|
||||
"es-x/no-set-prototype-issupersetof": "error",
|
||||
"es-x/no-set-prototype-symmetricdifference": "error",
|
||||
"es-x/no-set-prototype-union": "error",
|
||||
"es-x/no-arraybuffer-prototype-transfer": "error",
|
||||
"es-x/no-atomics-waitasync": "error",
|
||||
"es-x/no-object-map-groupby": "error",
|
||||
"es-x/no-promise-withresolvers": "error",
|
||||
"es-x/no-regexp-v-flag": "error",
|
||||
"es-x/no-resizable-and-growable-arraybuffers": "error",
|
||||
"es-x/no-string-prototype-iswellformed-towellformed": "error",
|
||||
},
|
||||
}
|
||||
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-set-methods.js
generated
vendored
Normal file
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/no-set-methods.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"es-x/no-set-prototype-difference": "error",
|
||||
"es-x/no-set-prototype-intersection": "error",
|
||||
"es-x/no-set-prototype-isdisjointfrom": "error",
|
||||
"es-x/no-set-prototype-issubsetof": "error",
|
||||
"es-x/no-set-prototype-issupersetof": "error",
|
||||
"es-x/no-set-prototype-symmetricdifference": "error",
|
||||
"es-x/no-set-prototype-union": "error",
|
||||
},
|
||||
}
|
||||
24
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es-intl-api-1st-edition.js
generated
vendored
Normal file
24
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es-intl-api-1st-edition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
...require("./no-new-in-es2019-intl-api").rules,
|
||||
...require("./no-new-in-es2018-intl-api").rules,
|
||||
...require("./no-new-in-es2017-intl-api").rules,
|
||||
...require("./no-new-in-es2016-intl-api").rules,
|
||||
...require("./no-new-in-es2015-intl-api").rules,
|
||||
},
|
||||
}
|
||||
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2015-intl-api.js
generated
vendored
Normal file
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2015-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
...require("./no-new-in-es2019-intl-api").rules,
|
||||
...require("./no-new-in-es2018-intl-api").rules,
|
||||
...require("./no-new-in-es2017-intl-api").rules,
|
||||
...require("./no-new-in-es2016-intl-api").rules,
|
||||
},
|
||||
}
|
||||
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2015.js
generated
vendored
Normal file
23
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2015.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
...require("./no-new-in-es2018").rules,
|
||||
...require("./no-new-in-es2017").rules,
|
||||
...require("./no-new-in-es2016").rules,
|
||||
},
|
||||
}
|
||||
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2016-intl-api.js
generated
vendored
Normal file
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2016-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
...require("./no-new-in-es2019-intl-api").rules,
|
||||
...require("./no-new-in-es2018-intl-api").rules,
|
||||
...require("./no-new-in-es2017-intl-api").rules,
|
||||
},
|
||||
}
|
||||
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2016.js
generated
vendored
Normal file
22
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2016.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
...require("./no-new-in-es2018").rules,
|
||||
...require("./no-new-in-es2017").rules,
|
||||
},
|
||||
}
|
||||
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2017-intl-api.js
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2017-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
...require("./no-new-in-es2019-intl-api").rules,
|
||||
...require("./no-new-in-es2018-intl-api").rules,
|
||||
},
|
||||
}
|
||||
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2017.js
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2017.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
...require("./no-new-in-es2018").rules,
|
||||
},
|
||||
}
|
||||
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2018-intl-api.js
generated
vendored
Normal file
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2018-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
...require("./no-new-in-es2019-intl-api").rules,
|
||||
},
|
||||
}
|
||||
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2018.js
generated
vendored
Normal file
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2018.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
},
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2019-intl-api.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2019-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
...require("./no-new-in-es2020-intl-api").rules,
|
||||
},
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2019.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2019.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2020-intl-api.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2020-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
...require("./no-new-in-es2021-intl-api").rules,
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2020.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2020.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2021-intl-api.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2021-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023-intl-api").rules,
|
||||
...require("./no-new-in-es2022-intl-api").rules,
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2021.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2021.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2022-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2022-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: { ...require("./no-new-in-es2023-intl-api").rules },
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2022.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es2022.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: { ...require("./no-new-in-es2023").rules },
|
||||
}
|
||||
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es3.js
generated
vendored
Normal file
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es3.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
...require("./no-new-in-es2018").rules,
|
||||
...require("./no-new-in-es2017").rules,
|
||||
...require("./no-new-in-es2016").rules,
|
||||
...require("./no-new-in-es2015").rules,
|
||||
...require("./no-new-in-es5").rules,
|
||||
},
|
||||
}
|
||||
24
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es5.js
generated
vendored
Normal file
24
home/ags/node_modules/eslint-plugin-es-x/lib/configs/flat/restrict-to-es5.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-flat-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
get "es-x"() {
|
||||
return require("../../index.js")
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
...require("./no-new-in-es2023").rules,
|
||||
...require("./no-new-in-es2022").rules,
|
||||
...require("./no-new-in-es2021").rules,
|
||||
...require("./no-new-in-es2020").rules,
|
||||
...require("./no-new-in-es2019").rules,
|
||||
...require("./no-new-in-es2018").rules,
|
||||
...require("./no-new-in-es2017").rules,
|
||||
...require("./no-new-in-es2016").rules,
|
||||
...require("./no-new-in-es2015").rules,
|
||||
},
|
||||
}
|
||||
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2015-intl-api.js
generated
vendored
Normal file
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2015-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = { plugins: ["es-x"], rules: {} }
|
||||
90
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2015.js
generated
vendored
Normal file
90
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2015.js
generated
vendored
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-array-from": "error",
|
||||
"es-x/no-array-of": "error",
|
||||
"es-x/no-array-prototype-copywithin": "error",
|
||||
"es-x/no-array-prototype-entries": "error",
|
||||
"es-x/no-array-prototype-fill": "error",
|
||||
"es-x/no-array-prototype-find": "error",
|
||||
"es-x/no-array-prototype-findindex": "error",
|
||||
"es-x/no-array-prototype-keys": "error",
|
||||
"es-x/no-array-prototype-values": "error",
|
||||
"es-x/no-arrow-functions": "error",
|
||||
"es-x/no-binary-numeric-literals": "error",
|
||||
"es-x/no-block-scoped-functions": "error",
|
||||
"es-x/no-block-scoped-variables": "error",
|
||||
"es-x/no-classes": "error",
|
||||
"es-x/no-computed-properties": "error",
|
||||
"es-x/no-default-parameters": "error",
|
||||
"es-x/no-destructuring": "error",
|
||||
"es-x/no-for-of-loops": "error",
|
||||
"es-x/no-generators": "error",
|
||||
"es-x/no-map": "error",
|
||||
"es-x/no-math-acosh": "error",
|
||||
"es-x/no-math-asinh": "error",
|
||||
"es-x/no-math-atanh": "error",
|
||||
"es-x/no-math-cbrt": "error",
|
||||
"es-x/no-math-clz32": "error",
|
||||
"es-x/no-math-cosh": "error",
|
||||
"es-x/no-math-expm1": "error",
|
||||
"es-x/no-math-fround": "error",
|
||||
"es-x/no-math-hypot": "error",
|
||||
"es-x/no-math-imul": "error",
|
||||
"es-x/no-math-log10": "error",
|
||||
"es-x/no-math-log1p": "error",
|
||||
"es-x/no-math-log2": "error",
|
||||
"es-x/no-math-sign": "error",
|
||||
"es-x/no-math-sinh": "error",
|
||||
"es-x/no-math-tanh": "error",
|
||||
"es-x/no-math-trunc": "error",
|
||||
"es-x/no-modules": "error",
|
||||
"es-x/no-new-target": "error",
|
||||
"es-x/no-number-epsilon": "error",
|
||||
"es-x/no-number-isfinite": "error",
|
||||
"es-x/no-number-isinteger": "error",
|
||||
"es-x/no-number-isnan": "error",
|
||||
"es-x/no-number-issafeinteger": "error",
|
||||
"es-x/no-number-maxsafeinteger": "error",
|
||||
"es-x/no-number-minsafeinteger": "error",
|
||||
"es-x/no-number-parsefloat": "error",
|
||||
"es-x/no-number-parseint": "error",
|
||||
"es-x/no-object-assign": "error",
|
||||
"es-x/no-object-getownpropertysymbols": "error",
|
||||
"es-x/no-object-is": "error",
|
||||
"es-x/no-object-setprototypeof": "error",
|
||||
"es-x/no-object-super-properties": "error",
|
||||
"es-x/no-octal-numeric-literals": "error",
|
||||
"es-x/no-promise": "error",
|
||||
"es-x/no-property-shorthands": "error",
|
||||
"es-x/no-proxy": "error",
|
||||
"es-x/no-reflect": "error",
|
||||
"es-x/no-regexp-prototype-flags": "error",
|
||||
"es-x/no-regexp-u-flag": "error",
|
||||
"es-x/no-regexp-y-flag": "error",
|
||||
"es-x/no-rest-parameters": "error",
|
||||
"es-x/no-set": "error",
|
||||
"es-x/no-spread-elements": "error",
|
||||
"es-x/no-string-fromcodepoint": "error",
|
||||
"es-x/no-string-prototype-codepointat": "error",
|
||||
"es-x/no-string-prototype-endswith": "error",
|
||||
"es-x/no-string-prototype-includes": "error",
|
||||
"es-x/no-string-prototype-normalize": "error",
|
||||
"es-x/no-string-prototype-repeat": "error",
|
||||
"es-x/no-string-prototype-startswith": "error",
|
||||
"es-x/no-string-raw": "error",
|
||||
"es-x/no-subclassing-builtins": "error",
|
||||
"es-x/no-symbol": "error",
|
||||
"es-x/no-template-literals": "error",
|
||||
"es-x/no-typed-arrays": "error",
|
||||
"es-x/no-unicode-codepoint-escapes": "error",
|
||||
"es-x/no-weak-map": "error",
|
||||
"es-x/no-weak-set": "error",
|
||||
},
|
||||
}
|
||||
10
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2016-intl-api.js
generated
vendored
Normal file
10
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2016-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: { "es-x/no-intl-getcanonicallocales": "error" },
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2016.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2016.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-array-prototype-includes": "error",
|
||||
"es-x/no-exponential-operators": "error",
|
||||
},
|
||||
}
|
||||
10
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2017-intl-api.js
generated
vendored
Normal file
10
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2017-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: { "es-x/no-intl-datetimeformat-prototype-formattoparts": "error" },
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2017.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2017.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-async-functions": "error",
|
||||
"es-x/no-atomics": "error",
|
||||
"es-x/no-object-entries": "error",
|
||||
"es-x/no-object-getownpropertydescriptors": "error",
|
||||
"es-x/no-object-values": "error",
|
||||
"es-x/no-shared-array-buffer": "error",
|
||||
"es-x/no-string-prototype-padstart-padend": "error",
|
||||
"es-x/no-trailing-function-commas": "error",
|
||||
},
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2018-intl-api.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2018-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-intl-numberformat-prototype-formattoparts": "error",
|
||||
"es-x/no-intl-pluralrules": "error",
|
||||
},
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2018.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2018.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-async-iteration": "error",
|
||||
"es-x/no-malformed-template-literals": "error",
|
||||
"es-x/no-promise-prototype-finally": "error",
|
||||
"es-x/no-regexp-lookbehind-assertions": "error",
|
||||
"es-x/no-regexp-named-capture-groups": "error",
|
||||
"es-x/no-regexp-s-flag": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes": "error",
|
||||
"es-x/no-rest-spread-properties": "error",
|
||||
},
|
||||
}
|
||||
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2019-intl-api.js
generated
vendored
Normal file
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2019-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = { plugins: ["es-x"], rules: {} }
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2019.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2019.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-array-prototype-flat": "error",
|
||||
"es-x/no-json-superset": "error",
|
||||
"es-x/no-object-fromentries": "error",
|
||||
"es-x/no-optional-catch-binding": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2019": "error",
|
||||
"es-x/no-string-prototype-trimstart-trimend": "error",
|
||||
"es-x/no-symbol-prototype-description": "error",
|
||||
},
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2020-intl-api.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2020-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-intl-locale": "error",
|
||||
"es-x/no-intl-relativetimeformat": "error",
|
||||
},
|
||||
}
|
||||
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2020.js
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2020.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-bigint": "error",
|
||||
"es-x/no-dynamic-import": "error",
|
||||
"es-x/no-export-ns-from": "error",
|
||||
"es-x/no-global-this": "error",
|
||||
"es-x/no-import-meta": "error",
|
||||
"es-x/no-nullish-coalescing-operators": "error",
|
||||
"es-x/no-optional-chaining": "error",
|
||||
"es-x/no-promise-all-settled": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2020": "error",
|
||||
"es-x/no-string-prototype-matchall": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2021-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2021-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-intl-datetimeformat-prototype-formatrange": "error",
|
||||
"es-x/no-intl-displaynames": "error",
|
||||
"es-x/no-intl-listformat": "error",
|
||||
},
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2021.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2021.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-logical-assignment-operators": "error",
|
||||
"es-x/no-numeric-separators": "error",
|
||||
"es-x/no-promise-any": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2021": "error",
|
||||
"es-x/no-string-prototype-replaceall": "error",
|
||||
"es-x/no-weakrefs": "error",
|
||||
},
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2022-intl-api.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2022-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-intl-segmenter": "error",
|
||||
"es-x/no-intl-supportedvaluesof": "error",
|
||||
},
|
||||
}
|
||||
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2022.js
generated
vendored
Normal file
21
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2022.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-arbitrary-module-namespace-names": "error",
|
||||
"es-x/no-array-string-prototype-at": "error",
|
||||
"es-x/no-class-fields": "error",
|
||||
"es-x/no-class-static-block": "error",
|
||||
"es-x/no-error-cause": "error",
|
||||
"es-x/no-object-hasown": "error",
|
||||
"es-x/no-private-in": "error",
|
||||
"es-x/no-regexp-d-flag": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2022": "error",
|
||||
"es-x/no-top-level-await": "error",
|
||||
},
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2023-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2023-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-intl-numberformat-prototype-formatrange": "error",
|
||||
"es-x/no-intl-numberformat-prototype-formatrangetoparts": "error",
|
||||
"es-x/no-intl-pluralrules-prototype-selectrange": "error",
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2023.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es2023.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-array-prototype-findlast-findlastindex": "error",
|
||||
"es-x/no-array-prototype-toreversed": "error",
|
||||
"es-x/no-array-prototype-tosorted": "error",
|
||||
"es-x/no-array-prototype-tospliced": "error",
|
||||
"es-x/no-array-prototype-with": "error",
|
||||
"es-x/no-hashbang": "error",
|
||||
"es-x/no-regexp-unicode-property-escapes-2023": "error",
|
||||
},
|
||||
}
|
||||
41
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es5.js
generated
vendored
Normal file
41
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-es5.js
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-accessor-properties": "error",
|
||||
"es-x/no-array-isarray": "error",
|
||||
"es-x/no-array-prototype-every": "error",
|
||||
"es-x/no-array-prototype-filter": "error",
|
||||
"es-x/no-array-prototype-foreach": "error",
|
||||
"es-x/no-array-prototype-indexof": "error",
|
||||
"es-x/no-array-prototype-lastindexof": "error",
|
||||
"es-x/no-array-prototype-map": "error",
|
||||
"es-x/no-array-prototype-reduce": "error",
|
||||
"es-x/no-array-prototype-reduceright": "error",
|
||||
"es-x/no-array-prototype-some": "error",
|
||||
"es-x/no-date-now": "error",
|
||||
"es-x/no-function-prototype-bind": "error",
|
||||
"es-x/no-json": "error",
|
||||
"es-x/no-keyword-properties": "error",
|
||||
"es-x/no-object-create": "error",
|
||||
"es-x/no-object-defineproperties": "error",
|
||||
"es-x/no-object-defineproperty": "error",
|
||||
"es-x/no-object-freeze": "error",
|
||||
"es-x/no-object-getownpropertydescriptor": "error",
|
||||
"es-x/no-object-getownpropertynames": "error",
|
||||
"es-x/no-object-getprototypeof": "error",
|
||||
"es-x/no-object-isextensible": "error",
|
||||
"es-x/no-object-isfrozen": "error",
|
||||
"es-x/no-object-issealed": "error",
|
||||
"es-x/no-object-keys": "error",
|
||||
"es-x/no-object-preventextensions": "error",
|
||||
"es-x/no-object-seal": "error",
|
||||
"es-x/no-string-prototype-trim": "error",
|
||||
"es-x/no-trailing-commas": "error",
|
||||
},
|
||||
}
|
||||
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-esnext-intl-api.js
generated
vendored
Normal file
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-esnext-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = { plugins: ["es-x"], rules: {} }
|
||||
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-esnext.js
generated
vendored
Normal file
25
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-new-in-esnext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-set-prototype-difference": "error",
|
||||
"es-x/no-set-prototype-intersection": "error",
|
||||
"es-x/no-set-prototype-isdisjointfrom": "error",
|
||||
"es-x/no-set-prototype-issubsetof": "error",
|
||||
"es-x/no-set-prototype-issupersetof": "error",
|
||||
"es-x/no-set-prototype-symmetricdifference": "error",
|
||||
"es-x/no-set-prototype-union": "error",
|
||||
"es-x/no-arraybuffer-prototype-transfer": "error",
|
||||
"es-x/no-atomics-waitasync": "error",
|
||||
"es-x/no-object-map-groupby": "error",
|
||||
"es-x/no-promise-withresolvers": "error",
|
||||
"es-x/no-regexp-v-flag": "error",
|
||||
"es-x/no-resizable-and-growable-arraybuffers": "error",
|
||||
"es-x/no-string-prototype-iswellformed-towellformed": "error",
|
||||
},
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-set-methods.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/no-set-methods.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
plugins: ["es-x"],
|
||||
rules: {
|
||||
"es-x/no-set-prototype-difference": "error",
|
||||
"es-x/no-set-prototype-intersection": "error",
|
||||
"es-x/no-set-prototype-isdisjointfrom": "error",
|
||||
"es-x/no-set-prototype-issubsetof": "error",
|
||||
"es-x/no-set-prototype-issupersetof": "error",
|
||||
"es-x/no-set-prototype-symmetricdifference": "error",
|
||||
"es-x/no-set-prototype-union": "error",
|
||||
},
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es-intl-api-1st-edition.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es-intl-api-1st-edition.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
require.resolve("./no-new-in-es2019-intl-api"),
|
||||
require.resolve("./no-new-in-es2018-intl-api"),
|
||||
require.resolve("./no-new-in-es2017-intl-api"),
|
||||
require.resolve("./no-new-in-es2016-intl-api"),
|
||||
require.resolve("./no-new-in-es2015-intl-api"),
|
||||
],
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2015-intl-api.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2015-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
require.resolve("./no-new-in-es2019-intl-api"),
|
||||
require.resolve("./no-new-in-es2018-intl-api"),
|
||||
require.resolve("./no-new-in-es2017-intl-api"),
|
||||
require.resolve("./no-new-in-es2016-intl-api"),
|
||||
],
|
||||
}
|
||||
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2015.js
generated
vendored
Normal file
18
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2015.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
require.resolve("./no-new-in-es2018"),
|
||||
require.resolve("./no-new-in-es2017"),
|
||||
require.resolve("./no-new-in-es2016"),
|
||||
],
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2016-intl-api.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2016-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
require.resolve("./no-new-in-es2019-intl-api"),
|
||||
require.resolve("./no-new-in-es2018-intl-api"),
|
||||
require.resolve("./no-new-in-es2017-intl-api"),
|
||||
],
|
||||
}
|
||||
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2016.js
generated
vendored
Normal file
17
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2016.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
require.resolve("./no-new-in-es2018"),
|
||||
require.resolve("./no-new-in-es2017"),
|
||||
],
|
||||
}
|
||||
16
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2017-intl-api.js
generated
vendored
Normal file
16
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2017-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
require.resolve("./no-new-in-es2019-intl-api"),
|
||||
require.resolve("./no-new-in-es2018-intl-api"),
|
||||
],
|
||||
}
|
||||
16
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2017.js
generated
vendored
Normal file
16
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2017.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
require.resolve("./no-new-in-es2018"),
|
||||
],
|
||||
}
|
||||
15
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2018-intl-api.js
generated
vendored
Normal file
15
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2018-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
require.resolve("./no-new-in-es2019-intl-api"),
|
||||
],
|
||||
}
|
||||
15
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2018.js
generated
vendored
Normal file
15
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2018.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
],
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2019-intl-api.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2019-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
require.resolve("./no-new-in-es2020-intl-api"),
|
||||
],
|
||||
}
|
||||
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2019.js
generated
vendored
Normal file
14
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2019.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
],
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2020-intl-api.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2020-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
require.resolve("./no-new-in-es2021-intl-api"),
|
||||
],
|
||||
}
|
||||
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2020.js
generated
vendored
Normal file
13
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2020.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
],
|
||||
}
|
||||
12
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2021-intl-api.js
generated
vendored
Normal file
12
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2021-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023-intl-api"),
|
||||
require.resolve("./no-new-in-es2022-intl-api"),
|
||||
],
|
||||
}
|
||||
12
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2021.js
generated
vendored
Normal file
12
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2021.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
],
|
||||
}
|
||||
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2022-intl-api.js
generated
vendored
Normal file
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2022-intl-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = { extends: [require.resolve("./no-new-in-es2023-intl-api")] }
|
||||
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2022.js
generated
vendored
Normal file
7
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es2022.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = { extends: [require.resolve("./no-new-in-es2023")] }
|
||||
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es3.js
generated
vendored
Normal file
20
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es3.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
require.resolve("./no-new-in-es2018"),
|
||||
require.resolve("./no-new-in-es2017"),
|
||||
require.resolve("./no-new-in-es2016"),
|
||||
require.resolve("./no-new-in-es2015"),
|
||||
require.resolve("./no-new-in-es5"),
|
||||
],
|
||||
}
|
||||
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es5.js
generated
vendored
Normal file
19
home/ags/node_modules/eslint-plugin-es-x/lib/configs/restrict-to-es5.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated by "scripts/update-lib-configs.js" script.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
extends: [
|
||||
require.resolve("./no-new-in-es2023"),
|
||||
require.resolve("./no-new-in-es2022"),
|
||||
require.resolve("./no-new-in-es2021"),
|
||||
require.resolve("./no-new-in-es2020"),
|
||||
require.resolve("./no-new-in-es2019"),
|
||||
require.resolve("./no-new-in-es2018"),
|
||||
require.resolve("./no-new-in-es2017"),
|
||||
require.resolve("./no-new-in-es2016"),
|
||||
require.resolve("./no-new-in-es2015"),
|
||||
],
|
||||
}
|
||||
329
home/ags/node_modules/eslint-plugin-es-x/lib/index.js
generated
vendored
Normal file
329
home/ags/node_modules/eslint-plugin-es-x/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,329 @@
|
|||
/**
|
||||
* DON'T EDIT THIS FILE.
|
||||
* This file was generated automatically by 'scripts/update-lib-index.js'.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const { printWarningOfDeprecatedConfig } = require("./utils")
|
||||
const { version, name } = require("../package.json")
|
||||
|
||||
module.exports = {
|
||||
meta: { version, name },
|
||||
configs: {
|
||||
"flat/no-new-in-es5": require("./configs/flat/no-new-in-es5"),
|
||||
"flat/no-new-in-es2015": require("./configs/flat/no-new-in-es2015"),
|
||||
"flat/no-new-in-es2015-intl-api": require("./configs/flat/no-new-in-es2015-intl-api"),
|
||||
"flat/no-new-in-es2016": require("./configs/flat/no-new-in-es2016"),
|
||||
"flat/no-new-in-es2016-intl-api": require("./configs/flat/no-new-in-es2016-intl-api"),
|
||||
"flat/no-new-in-es2017": require("./configs/flat/no-new-in-es2017"),
|
||||
"flat/no-new-in-es2017-intl-api": require("./configs/flat/no-new-in-es2017-intl-api"),
|
||||
"flat/no-new-in-es2018": require("./configs/flat/no-new-in-es2018"),
|
||||
"flat/no-new-in-es2018-intl-api": require("./configs/flat/no-new-in-es2018-intl-api"),
|
||||
"flat/no-new-in-es2019": require("./configs/flat/no-new-in-es2019"),
|
||||
"flat/no-new-in-es2019-intl-api": require("./configs/flat/no-new-in-es2019-intl-api"),
|
||||
"flat/no-new-in-es2020": require("./configs/flat/no-new-in-es2020"),
|
||||
"flat/no-new-in-es2020-intl-api": require("./configs/flat/no-new-in-es2020-intl-api"),
|
||||
"flat/no-new-in-es2021": require("./configs/flat/no-new-in-es2021"),
|
||||
"flat/no-new-in-es2021-intl-api": require("./configs/flat/no-new-in-es2021-intl-api"),
|
||||
"flat/no-new-in-es2022": require("./configs/flat/no-new-in-es2022"),
|
||||
"flat/no-new-in-es2022-intl-api": require("./configs/flat/no-new-in-es2022-intl-api"),
|
||||
"flat/no-new-in-es2023": require("./configs/flat/no-new-in-es2023"),
|
||||
"flat/no-new-in-es2023-intl-api": require("./configs/flat/no-new-in-es2023-intl-api"),
|
||||
"flat/no-new-in-esnext": require("./configs/flat/no-new-in-esnext"),
|
||||
"flat/no-new-in-esnext-intl-api": require("./configs/flat/no-new-in-esnext-intl-api"),
|
||||
"flat/no-set-methods": require("./configs/flat/no-set-methods"),
|
||||
"flat/restrict-to-es-intl-api-1st-edition": require("./configs/flat/restrict-to-es-intl-api-1st-edition"),
|
||||
"flat/restrict-to-es3": require("./configs/flat/restrict-to-es3"),
|
||||
"flat/restrict-to-es5": require("./configs/flat/restrict-to-es5"),
|
||||
"flat/restrict-to-es2015": require("./configs/flat/restrict-to-es2015"),
|
||||
"flat/restrict-to-es2015-intl-api": require("./configs/flat/restrict-to-es2015-intl-api"),
|
||||
"flat/restrict-to-es2016": require("./configs/flat/restrict-to-es2016"),
|
||||
"flat/restrict-to-es2016-intl-api": require("./configs/flat/restrict-to-es2016-intl-api"),
|
||||
"flat/restrict-to-es2017": require("./configs/flat/restrict-to-es2017"),
|
||||
"flat/restrict-to-es2017-intl-api": require("./configs/flat/restrict-to-es2017-intl-api"),
|
||||
"flat/restrict-to-es2018": require("./configs/flat/restrict-to-es2018"),
|
||||
"flat/restrict-to-es2018-intl-api": require("./configs/flat/restrict-to-es2018-intl-api"),
|
||||
"flat/restrict-to-es2019": require("./configs/flat/restrict-to-es2019"),
|
||||
"flat/restrict-to-es2019-intl-api": require("./configs/flat/restrict-to-es2019-intl-api"),
|
||||
"flat/restrict-to-es2020": require("./configs/flat/restrict-to-es2020"),
|
||||
"flat/restrict-to-es2020-intl-api": require("./configs/flat/restrict-to-es2020-intl-api"),
|
||||
"flat/restrict-to-es2021": require("./configs/flat/restrict-to-es2021"),
|
||||
"flat/restrict-to-es2021-intl-api": require("./configs/flat/restrict-to-es2021-intl-api"),
|
||||
"flat/restrict-to-es2022": require("./configs/flat/restrict-to-es2022"),
|
||||
"flat/restrict-to-es2022-intl-api": require("./configs/flat/restrict-to-es2022-intl-api"),
|
||||
"no-new-in-es5": require("./configs/no-new-in-es5"),
|
||||
"no-new-in-es2015": require("./configs/no-new-in-es2015"),
|
||||
"no-new-in-es2015-intl-api": require("./configs/no-new-in-es2015-intl-api"),
|
||||
"no-new-in-es2016": require("./configs/no-new-in-es2016"),
|
||||
"no-new-in-es2016-intl-api": require("./configs/no-new-in-es2016-intl-api"),
|
||||
"no-new-in-es2017": require("./configs/no-new-in-es2017"),
|
||||
"no-new-in-es2017-intl-api": require("./configs/no-new-in-es2017-intl-api"),
|
||||
"no-new-in-es2018": require("./configs/no-new-in-es2018"),
|
||||
"no-new-in-es2018-intl-api": require("./configs/no-new-in-es2018-intl-api"),
|
||||
"no-new-in-es2019": require("./configs/no-new-in-es2019"),
|
||||
"no-new-in-es2019-intl-api": require("./configs/no-new-in-es2019-intl-api"),
|
||||
"no-new-in-es2020": require("./configs/no-new-in-es2020"),
|
||||
"no-new-in-es2020-intl-api": require("./configs/no-new-in-es2020-intl-api"),
|
||||
"no-new-in-es2021": require("./configs/no-new-in-es2021"),
|
||||
"no-new-in-es2021-intl-api": require("./configs/no-new-in-es2021-intl-api"),
|
||||
"no-new-in-es2022": require("./configs/no-new-in-es2022"),
|
||||
"no-new-in-es2022-intl-api": require("./configs/no-new-in-es2022-intl-api"),
|
||||
"no-new-in-es2023": require("./configs/no-new-in-es2023"),
|
||||
"no-new-in-es2023-intl-api": require("./configs/no-new-in-es2023-intl-api"),
|
||||
"no-new-in-esnext": require("./configs/no-new-in-esnext"),
|
||||
"no-new-in-esnext-intl-api": require("./configs/no-new-in-esnext-intl-api"),
|
||||
"no-set-methods": require("./configs/no-set-methods"),
|
||||
"restrict-to-es-intl-api-1st-edition": require("./configs/restrict-to-es-intl-api-1st-edition"),
|
||||
"restrict-to-es3": require("./configs/restrict-to-es3"),
|
||||
"restrict-to-es5": require("./configs/restrict-to-es5"),
|
||||
"restrict-to-es2015": require("./configs/restrict-to-es2015"),
|
||||
"restrict-to-es2015-intl-api": require("./configs/restrict-to-es2015-intl-api"),
|
||||
"restrict-to-es2016": require("./configs/restrict-to-es2016"),
|
||||
"restrict-to-es2016-intl-api": require("./configs/restrict-to-es2016-intl-api"),
|
||||
"restrict-to-es2017": require("./configs/restrict-to-es2017"),
|
||||
"restrict-to-es2017-intl-api": require("./configs/restrict-to-es2017-intl-api"),
|
||||
"restrict-to-es2018": require("./configs/restrict-to-es2018"),
|
||||
"restrict-to-es2018-intl-api": require("./configs/restrict-to-es2018-intl-api"),
|
||||
"restrict-to-es2019": require("./configs/restrict-to-es2019"),
|
||||
"restrict-to-es2019-intl-api": require("./configs/restrict-to-es2019-intl-api"),
|
||||
"restrict-to-es2020": require("./configs/restrict-to-es2020"),
|
||||
"restrict-to-es2020-intl-api": require("./configs/restrict-to-es2020-intl-api"),
|
||||
"restrict-to-es2021": require("./configs/restrict-to-es2021"),
|
||||
"restrict-to-es2021-intl-api": require("./configs/restrict-to-es2021-intl-api"),
|
||||
"restrict-to-es2022": require("./configs/restrict-to-es2022"),
|
||||
"restrict-to-es2022-intl-api": require("./configs/restrict-to-es2022-intl-api"),
|
||||
get "no-5"() {
|
||||
printWarningOfDeprecatedConfig("no-5")
|
||||
return this["no-new-in-es5"]
|
||||
},
|
||||
get "no-2015"() {
|
||||
printWarningOfDeprecatedConfig("no-2015")
|
||||
return this["no-new-in-es2015"]
|
||||
},
|
||||
get "no-2016"() {
|
||||
printWarningOfDeprecatedConfig("no-2016")
|
||||
return this["no-new-in-es2016"]
|
||||
},
|
||||
get "no-2017"() {
|
||||
printWarningOfDeprecatedConfig("no-2017")
|
||||
return this["no-new-in-es2017"]
|
||||
},
|
||||
get "no-2018"() {
|
||||
printWarningOfDeprecatedConfig("no-2018")
|
||||
return this["no-new-in-es2018"]
|
||||
},
|
||||
get "no-2019"() {
|
||||
printWarningOfDeprecatedConfig("no-2019")
|
||||
return this["no-new-in-es2019"]
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
"no-accessor-properties": require("./rules/no-accessor-properties"),
|
||||
"no-arbitrary-module-namespace-names": require("./rules/no-arbitrary-module-namespace-names"),
|
||||
"no-array-from": require("./rules/no-array-from"),
|
||||
"no-array-isarray": require("./rules/no-array-isarray"),
|
||||
"no-array-of": require("./rules/no-array-of"),
|
||||
"no-array-prototype-copywithin": require("./rules/no-array-prototype-copywithin"),
|
||||
"no-array-prototype-entries": require("./rules/no-array-prototype-entries"),
|
||||
"no-array-prototype-every": require("./rules/no-array-prototype-every"),
|
||||
"no-array-prototype-fill": require("./rules/no-array-prototype-fill"),
|
||||
"no-array-prototype-filter": require("./rules/no-array-prototype-filter"),
|
||||
"no-array-prototype-find": require("./rules/no-array-prototype-find"),
|
||||
"no-array-prototype-findindex": require("./rules/no-array-prototype-findindex"),
|
||||
"no-array-prototype-findlast-findlastindex": require("./rules/no-array-prototype-findlast-findlastindex"),
|
||||
"no-array-prototype-flat": require("./rules/no-array-prototype-flat"),
|
||||
"no-array-prototype-foreach": require("./rules/no-array-prototype-foreach"),
|
||||
"no-array-prototype-includes": require("./rules/no-array-prototype-includes"),
|
||||
"no-array-prototype-indexof": require("./rules/no-array-prototype-indexof"),
|
||||
"no-array-prototype-keys": require("./rules/no-array-prototype-keys"),
|
||||
"no-array-prototype-lastindexof": require("./rules/no-array-prototype-lastindexof"),
|
||||
"no-array-prototype-map": require("./rules/no-array-prototype-map"),
|
||||
"no-array-prototype-reduce": require("./rules/no-array-prototype-reduce"),
|
||||
"no-array-prototype-reduceright": require("./rules/no-array-prototype-reduceright"),
|
||||
"no-array-prototype-some": require("./rules/no-array-prototype-some"),
|
||||
"no-array-prototype-toreversed": require("./rules/no-array-prototype-toreversed"),
|
||||
"no-array-prototype-tosorted": require("./rules/no-array-prototype-tosorted"),
|
||||
"no-array-prototype-tospliced": require("./rules/no-array-prototype-tospliced"),
|
||||
"no-array-prototype-values": require("./rules/no-array-prototype-values"),
|
||||
"no-array-prototype-with": require("./rules/no-array-prototype-with"),
|
||||
"no-array-string-prototype-at": require("./rules/no-array-string-prototype-at"),
|
||||
"no-arraybuffer-prototype-transfer": require("./rules/no-arraybuffer-prototype-transfer"),
|
||||
"no-arrow-functions": require("./rules/no-arrow-functions"),
|
||||
"no-async-functions": require("./rules/no-async-functions"),
|
||||
"no-async-iteration": require("./rules/no-async-iteration"),
|
||||
"no-atomics": require("./rules/no-atomics"),
|
||||
"no-atomics-waitasync": require("./rules/no-atomics-waitasync"),
|
||||
"no-bigint": require("./rules/no-bigint"),
|
||||
"no-binary-numeric-literals": require("./rules/no-binary-numeric-literals"),
|
||||
"no-block-scoped-functions": require("./rules/no-block-scoped-functions"),
|
||||
"no-block-scoped-variables": require("./rules/no-block-scoped-variables"),
|
||||
"no-class-fields": require("./rules/no-class-fields"),
|
||||
"no-class-static-block": require("./rules/no-class-static-block"),
|
||||
"no-classes": require("./rules/no-classes"),
|
||||
"no-computed-properties": require("./rules/no-computed-properties"),
|
||||
"no-date-now": require("./rules/no-date-now"),
|
||||
"no-date-prototype-getyear-setyear": require("./rules/no-date-prototype-getyear-setyear"),
|
||||
"no-date-prototype-togmtstring": require("./rules/no-date-prototype-togmtstring"),
|
||||
"no-default-parameters": require("./rules/no-default-parameters"),
|
||||
"no-destructuring": require("./rules/no-destructuring"),
|
||||
"no-dynamic-import": require("./rules/no-dynamic-import"),
|
||||
"no-error-cause": require("./rules/no-error-cause"),
|
||||
"no-escape-unescape": require("./rules/no-escape-unescape"),
|
||||
"no-exponential-operators": require("./rules/no-exponential-operators"),
|
||||
"no-export-ns-from": require("./rules/no-export-ns-from"),
|
||||
"no-for-of-loops": require("./rules/no-for-of-loops"),
|
||||
"no-function-declarations-in-if-statement-clauses-without-block": require("./rules/no-function-declarations-in-if-statement-clauses-without-block"),
|
||||
"no-function-prototype-bind": require("./rules/no-function-prototype-bind"),
|
||||
"no-generators": require("./rules/no-generators"),
|
||||
"no-global-this": require("./rules/no-global-this"),
|
||||
"no-hashbang": require("./rules/no-hashbang"),
|
||||
"no-import-meta": require("./rules/no-import-meta"),
|
||||
"no-initializers-in-for-in": require("./rules/no-initializers-in-for-in"),
|
||||
"no-intl-datetimeformat-prototype-formatrange": require("./rules/no-intl-datetimeformat-prototype-formatrange"),
|
||||
"no-intl-datetimeformat-prototype-formattoparts": require("./rules/no-intl-datetimeformat-prototype-formattoparts"),
|
||||
"no-intl-displaynames": require("./rules/no-intl-displaynames"),
|
||||
"no-intl-getcanonicallocales": require("./rules/no-intl-getcanonicallocales"),
|
||||
"no-intl-listformat": require("./rules/no-intl-listformat"),
|
||||
"no-intl-locale": require("./rules/no-intl-locale"),
|
||||
"no-intl-numberformat-prototype-formatrange": require("./rules/no-intl-numberformat-prototype-formatrange"),
|
||||
"no-intl-numberformat-prototype-formatrangetoparts": require("./rules/no-intl-numberformat-prototype-formatrangetoparts"),
|
||||
"no-intl-numberformat-prototype-formattoparts": require("./rules/no-intl-numberformat-prototype-formattoparts"),
|
||||
"no-intl-pluralrules": require("./rules/no-intl-pluralrules"),
|
||||
"no-intl-pluralrules-prototype-selectrange": require("./rules/no-intl-pluralrules-prototype-selectrange"),
|
||||
"no-intl-relativetimeformat": require("./rules/no-intl-relativetimeformat"),
|
||||
"no-intl-segmenter": require("./rules/no-intl-segmenter"),
|
||||
"no-intl-supportedvaluesof": require("./rules/no-intl-supportedvaluesof"),
|
||||
"no-json": require("./rules/no-json"),
|
||||
"no-json-superset": require("./rules/no-json-superset"),
|
||||
"no-keyword-properties": require("./rules/no-keyword-properties"),
|
||||
"no-labelled-function-declarations": require("./rules/no-labelled-function-declarations"),
|
||||
"no-legacy-object-prototype-accessor-methods": require("./rules/no-legacy-object-prototype-accessor-methods"),
|
||||
"no-logical-assignment-operators": require("./rules/no-logical-assignment-operators"),
|
||||
"no-malformed-template-literals": require("./rules/no-malformed-template-literals"),
|
||||
"no-map": require("./rules/no-map"),
|
||||
"no-math-acosh": require("./rules/no-math-acosh"),
|
||||
"no-math-asinh": require("./rules/no-math-asinh"),
|
||||
"no-math-atanh": require("./rules/no-math-atanh"),
|
||||
"no-math-cbrt": require("./rules/no-math-cbrt"),
|
||||
"no-math-clz32": require("./rules/no-math-clz32"),
|
||||
"no-math-cosh": require("./rules/no-math-cosh"),
|
||||
"no-math-expm1": require("./rules/no-math-expm1"),
|
||||
"no-math-fround": require("./rules/no-math-fround"),
|
||||
"no-math-hypot": require("./rules/no-math-hypot"),
|
||||
"no-math-imul": require("./rules/no-math-imul"),
|
||||
"no-math-log1p": require("./rules/no-math-log1p"),
|
||||
"no-math-log2": require("./rules/no-math-log2"),
|
||||
"no-math-log10": require("./rules/no-math-log10"),
|
||||
"no-math-sign": require("./rules/no-math-sign"),
|
||||
"no-math-sinh": require("./rules/no-math-sinh"),
|
||||
"no-math-tanh": require("./rules/no-math-tanh"),
|
||||
"no-math-trunc": require("./rules/no-math-trunc"),
|
||||
"no-modules": require("./rules/no-modules"),
|
||||
"no-new-target": require("./rules/no-new-target"),
|
||||
"no-nullish-coalescing-operators": require("./rules/no-nullish-coalescing-operators"),
|
||||
"no-number-epsilon": require("./rules/no-number-epsilon"),
|
||||
"no-number-isfinite": require("./rules/no-number-isfinite"),
|
||||
"no-number-isinteger": require("./rules/no-number-isinteger"),
|
||||
"no-number-isnan": require("./rules/no-number-isnan"),
|
||||
"no-number-issafeinteger": require("./rules/no-number-issafeinteger"),
|
||||
"no-number-maxsafeinteger": require("./rules/no-number-maxsafeinteger"),
|
||||
"no-number-minsafeinteger": require("./rules/no-number-minsafeinteger"),
|
||||
"no-number-parsefloat": require("./rules/no-number-parsefloat"),
|
||||
"no-number-parseint": require("./rules/no-number-parseint"),
|
||||
"no-numeric-separators": require("./rules/no-numeric-separators"),
|
||||
"no-object-assign": require("./rules/no-object-assign"),
|
||||
"no-object-create": require("./rules/no-object-create"),
|
||||
"no-object-defineproperties": require("./rules/no-object-defineproperties"),
|
||||
"no-object-defineproperty": require("./rules/no-object-defineproperty"),
|
||||
"no-object-entries": require("./rules/no-object-entries"),
|
||||
"no-object-freeze": require("./rules/no-object-freeze"),
|
||||
"no-object-fromentries": require("./rules/no-object-fromentries"),
|
||||
"no-object-getownpropertydescriptor": require("./rules/no-object-getownpropertydescriptor"),
|
||||
"no-object-getownpropertydescriptors": require("./rules/no-object-getownpropertydescriptors"),
|
||||
"no-object-getownpropertynames": require("./rules/no-object-getownpropertynames"),
|
||||
"no-object-getownpropertysymbols": require("./rules/no-object-getownpropertysymbols"),
|
||||
"no-object-getprototypeof": require("./rules/no-object-getprototypeof"),
|
||||
"no-object-hasown": require("./rules/no-object-hasown"),
|
||||
"no-object-is": require("./rules/no-object-is"),
|
||||
"no-object-isextensible": require("./rules/no-object-isextensible"),
|
||||
"no-object-isfrozen": require("./rules/no-object-isfrozen"),
|
||||
"no-object-issealed": require("./rules/no-object-issealed"),
|
||||
"no-object-keys": require("./rules/no-object-keys"),
|
||||
"no-object-map-groupby": require("./rules/no-object-map-groupby"),
|
||||
"no-object-preventextensions": require("./rules/no-object-preventextensions"),
|
||||
"no-object-seal": require("./rules/no-object-seal"),
|
||||
"no-object-setprototypeof": require("./rules/no-object-setprototypeof"),
|
||||
"no-object-super-properties": require("./rules/no-object-super-properties"),
|
||||
"no-object-values": require("./rules/no-object-values"),
|
||||
"no-octal-numeric-literals": require("./rules/no-octal-numeric-literals"),
|
||||
"no-optional-catch-binding": require("./rules/no-optional-catch-binding"),
|
||||
"no-optional-chaining": require("./rules/no-optional-chaining"),
|
||||
"no-private-in": require("./rules/no-private-in"),
|
||||
"no-promise": require("./rules/no-promise"),
|
||||
"no-promise-all-settled": require("./rules/no-promise-all-settled"),
|
||||
"no-promise-any": require("./rules/no-promise-any"),
|
||||
"no-promise-prototype-finally": require("./rules/no-promise-prototype-finally"),
|
||||
"no-promise-withresolvers": require("./rules/no-promise-withresolvers"),
|
||||
"no-property-shorthands": require("./rules/no-property-shorthands"),
|
||||
"no-proxy": require("./rules/no-proxy"),
|
||||
"no-reflect": require("./rules/no-reflect"),
|
||||
"no-regexp-d-flag": require("./rules/no-regexp-d-flag"),
|
||||
"no-regexp-lookbehind-assertions": require("./rules/no-regexp-lookbehind-assertions"),
|
||||
"no-regexp-named-capture-groups": require("./rules/no-regexp-named-capture-groups"),
|
||||
"no-regexp-prototype-compile": require("./rules/no-regexp-prototype-compile"),
|
||||
"no-regexp-prototype-flags": require("./rules/no-regexp-prototype-flags"),
|
||||
"no-regexp-s-flag": require("./rules/no-regexp-s-flag"),
|
||||
"no-regexp-u-flag": require("./rules/no-regexp-u-flag"),
|
||||
"no-regexp-unicode-property-escapes": require("./rules/no-regexp-unicode-property-escapes"),
|
||||
"no-regexp-unicode-property-escapes-2019": require("./rules/no-regexp-unicode-property-escapes-2019"),
|
||||
"no-regexp-unicode-property-escapes-2020": require("./rules/no-regexp-unicode-property-escapes-2020"),
|
||||
"no-regexp-unicode-property-escapes-2021": require("./rules/no-regexp-unicode-property-escapes-2021"),
|
||||
"no-regexp-unicode-property-escapes-2022": require("./rules/no-regexp-unicode-property-escapes-2022"),
|
||||
"no-regexp-unicode-property-escapes-2023": require("./rules/no-regexp-unicode-property-escapes-2023"),
|
||||
"no-regexp-v-flag": require("./rules/no-regexp-v-flag"),
|
||||
"no-regexp-y-flag": require("./rules/no-regexp-y-flag"),
|
||||
"no-resizable-and-growable-arraybuffers": require("./rules/no-resizable-and-growable-arraybuffers"),
|
||||
"no-rest-parameters": require("./rules/no-rest-parameters"),
|
||||
"no-rest-spread-properties": require("./rules/no-rest-spread-properties"),
|
||||
"no-set": require("./rules/no-set"),
|
||||
"no-set-prototype-difference": require("./rules/no-set-prototype-difference"),
|
||||
"no-set-prototype-intersection": require("./rules/no-set-prototype-intersection"),
|
||||
"no-set-prototype-isdisjointfrom": require("./rules/no-set-prototype-isdisjointfrom"),
|
||||
"no-set-prototype-issubsetof": require("./rules/no-set-prototype-issubsetof"),
|
||||
"no-set-prototype-issupersetof": require("./rules/no-set-prototype-issupersetof"),
|
||||
"no-set-prototype-symmetricdifference": require("./rules/no-set-prototype-symmetricdifference"),
|
||||
"no-set-prototype-union": require("./rules/no-set-prototype-union"),
|
||||
"no-shadow-catch-param": require("./rules/no-shadow-catch-param"),
|
||||
"no-shared-array-buffer": require("./rules/no-shared-array-buffer"),
|
||||
"no-spread-elements": require("./rules/no-spread-elements"),
|
||||
"no-string-create-html-methods": require("./rules/no-string-create-html-methods"),
|
||||
"no-string-fromcodepoint": require("./rules/no-string-fromcodepoint"),
|
||||
"no-string-prototype-codepointat": require("./rules/no-string-prototype-codepointat"),
|
||||
"no-string-prototype-endswith": require("./rules/no-string-prototype-endswith"),
|
||||
"no-string-prototype-includes": require("./rules/no-string-prototype-includes"),
|
||||
"no-string-prototype-iswellformed-towellformed": require("./rules/no-string-prototype-iswellformed-towellformed"),
|
||||
"no-string-prototype-matchall": require("./rules/no-string-prototype-matchall"),
|
||||
"no-string-prototype-normalize": require("./rules/no-string-prototype-normalize"),
|
||||
"no-string-prototype-padstart-padend": require("./rules/no-string-prototype-padstart-padend"),
|
||||
"no-string-prototype-repeat": require("./rules/no-string-prototype-repeat"),
|
||||
"no-string-prototype-replaceall": require("./rules/no-string-prototype-replaceall"),
|
||||
"no-string-prototype-startswith": require("./rules/no-string-prototype-startswith"),
|
||||
"no-string-prototype-substr": require("./rules/no-string-prototype-substr"),
|
||||
"no-string-prototype-trim": require("./rules/no-string-prototype-trim"),
|
||||
"no-string-prototype-trimleft-trimright": require("./rules/no-string-prototype-trimleft-trimright"),
|
||||
"no-string-prototype-trimstart-trimend": require("./rules/no-string-prototype-trimstart-trimend"),
|
||||
"no-string-raw": require("./rules/no-string-raw"),
|
||||
"no-subclassing-builtins": require("./rules/no-subclassing-builtins"),
|
||||
"no-symbol": require("./rules/no-symbol"),
|
||||
"no-symbol-prototype-description": require("./rules/no-symbol-prototype-description"),
|
||||
"no-template-literals": require("./rules/no-template-literals"),
|
||||
"no-top-level-await": require("./rules/no-top-level-await"),
|
||||
"no-trailing-commas": require("./rules/no-trailing-commas"),
|
||||
"no-trailing-function-commas": require("./rules/no-trailing-function-commas"),
|
||||
"no-typed-arrays": require("./rules/no-typed-arrays"),
|
||||
"no-unicode-codepoint-escapes": require("./rules/no-unicode-codepoint-escapes"),
|
||||
"no-weak-map": require("./rules/no-weak-map"),
|
||||
"no-weak-set": require("./rules/no-weak-set"),
|
||||
"no-weakrefs": require("./rules/no-weakrefs"),
|
||||
},
|
||||
}
|
||||
31
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-accessor-properties.js
generated
vendored
Normal file
31
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-accessor-properties.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow accessor properties.",
|
||||
category: "ES5",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-accessor-properties.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES5 accessor properties are forbidden.",
|
||||
},
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
"Property[kind='get'], Property[kind='set'], MethodDefinition[kind='get'], MethodDefinition[kind='set']"(
|
||||
node,
|
||||
) {
|
||||
context.report({ node, messageId: "forbidden" })
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
34
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-arbitrary-module-namespace-names.js
generated
vendored
Normal file
34
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-arbitrary-module-namespace-names.js
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* @author Yosuke Ota <https://github.com/ota-meshi>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow arbitrary module namespace names.",
|
||||
category: "ES2022",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-arbitrary-module-namespace-names.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2022 arbitrary module namespace names are forbidden.",
|
||||
},
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
"ExportAllDeclaration > Literal.exported, ExportSpecifier > Literal.local, ExportSpecifier > Literal.exported, ImportSpecifier > Literal.imported"(
|
||||
node,
|
||||
) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "forbidden",
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-from.js
generated
vendored
Normal file
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-from.js
generated
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
|
||||
const { getSourceCode } = require("eslint-compat-utils")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.from` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-from.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
"Program:exit"(program) {
|
||||
const sourceCode = getSourceCode(context)
|
||||
const tracker = new ReferenceTracker(
|
||||
sourceCode.getScope(program),
|
||||
)
|
||||
for (const { node, path } of tracker.iterateGlobalReferences({
|
||||
Array: {
|
||||
from: { [READ]: true },
|
||||
},
|
||||
})) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "forbidden",
|
||||
data: { name: path.join(".") },
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-isarray.js
generated
vendored
Normal file
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-isarray.js
generated
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
|
||||
const { getSourceCode } = require("eslint-compat-utils")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.isArray` method.",
|
||||
category: "ES5",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-isarray.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES5 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
"Program:exit"(program) {
|
||||
const sourceCode = getSourceCode(context)
|
||||
const tracker = new ReferenceTracker(
|
||||
sourceCode.getScope(program),
|
||||
)
|
||||
for (const { node, path } of tracker.iterateGlobalReferences({
|
||||
Array: {
|
||||
isArray: { [READ]: true },
|
||||
},
|
||||
})) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "forbidden",
|
||||
data: { name: path.join(".") },
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-of.js
generated
vendored
Normal file
46
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-of.js
generated
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const { READ, ReferenceTracker } = require("@eslint-community/eslint-utils")
|
||||
const { getSourceCode } = require("eslint-compat-utils")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.of` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-of.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return {
|
||||
"Program:exit"(program) {
|
||||
const sourceCode = getSourceCode(context)
|
||||
const tracker = new ReferenceTracker(
|
||||
sourceCode.getScope(program),
|
||||
)
|
||||
for (const { node, path } of tracker.iterateGlobalReferences({
|
||||
Array: {
|
||||
of: { [READ]: true },
|
||||
},
|
||||
})) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "forbidden",
|
||||
data: { name: path.join(".") },
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-copywithin.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-copywithin.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.copyWithin` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-copywithin.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["copyWithin"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-entries.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-entries.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.entries` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-entries.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["entries"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-every.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-every.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.every` method.",
|
||||
category: "ES5",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-every.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES5 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["every"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-fill.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-fill.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.fill` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-fill.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["fill"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-filter.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-filter.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.filter` method.",
|
||||
category: "ES5",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-filter.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES5 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["filter"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-find.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-find.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.find` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-find.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["find"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-findindex.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-findindex.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.findIndex` method.",
|
||||
category: "ES2015",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-findindex.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2015 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["findIndex"],
|
||||
})
|
||||
},
|
||||
}
|
||||
47
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-findlast-findlastindex.js
generated
vendored
Normal file
47
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-findlast-findlastindex.js
generated
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description:
|
||||
"disallow the `Array.prototype.{findLast,findLastIndex}` methods.",
|
||||
category: "ES2023",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-findlast-findlastindex.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2023 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["findLast", "findLastIndex"],
|
||||
Int8Array: ["findLast", "findLastIndex"],
|
||||
Uint8Array: ["findLast", "findLastIndex"],
|
||||
Uint8ClampedArray: ["findLast", "findLastIndex"],
|
||||
Int16Array: ["findLast", "findLastIndex"],
|
||||
Uint16Array: ["findLast", "findLastIndex"],
|
||||
Int32Array: ["findLast", "findLastIndex"],
|
||||
Uint32Array: ["findLast", "findLastIndex"],
|
||||
Float32Array: ["findLast", "findLastIndex"],
|
||||
Float64Array: ["findLast", "findLastIndex"],
|
||||
BigInt64Array: ["findLast", "findLastIndex"],
|
||||
BigUint64Array: ["findLast", "findLastIndex"],
|
||||
})
|
||||
},
|
||||
}
|
||||
40
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-flat.js
generated
vendored
Normal file
40
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-flat.js
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description:
|
||||
"disallow the `Array.prototype.{flat,flatMap}` method.",
|
||||
category: "ES2019",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-flat.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES2019 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["flat", "flatMap"],
|
||||
})
|
||||
},
|
||||
}
|
||||
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-foreach.js
generated
vendored
Normal file
39
home/ags/node_modules/eslint-plugin-es-x/lib/rules/no-array-prototype-foreach.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
const {
|
||||
definePrototypeMethodHandler,
|
||||
} = require("../util/define-prototype-method-handler")
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow the `Array.prototype.forEach` method.",
|
||||
category: "ES5",
|
||||
recommended: false,
|
||||
url: "http://eslint-community.github.io/eslint-plugin-es-x/rules/no-array-prototype-foreach.html",
|
||||
},
|
||||
fixable: null,
|
||||
messages: {
|
||||
forbidden: "ES5 '{{name}}' method is forbidden.",
|
||||
},
|
||||
schema: [
|
||||
{
|
||||
type: "object",
|
||||
properties: {
|
||||
aggressive: { type: "boolean" },
|
||||
},
|
||||
additionalProperties: false,
|
||||
},
|
||||
],
|
||||
type: "problem",
|
||||
},
|
||||
create(context) {
|
||||
return definePrototypeMethodHandler(context, {
|
||||
Array: ["forEach"],
|
||||
})
|
||||
},
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue