ags
This commit is contained in:
parent
eddf7cecb8
commit
aea798d119
16631 changed files with 1480363 additions and 257 deletions
40
home/ags/node_modules/eslint-plugin-n/lib/configs/recommended-script.js
generated
vendored
Normal file
40
home/ags/node_modules/eslint-plugin-n/lib/configs/recommended-script.js
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
"use strict"
|
||||
|
||||
const globals = require("globals")
|
||||
const { commonRules } = require("./_commons")
|
||||
|
||||
// eslintrc config: https://eslint.org/docs/latest/use/configure/configuration-files
|
||||
module.exports.eslintrc = {
|
||||
env: {
|
||||
node: true,
|
||||
},
|
||||
globals: {
|
||||
...globals.es2021,
|
||||
__dirname: "readonly",
|
||||
__filename: "readonly",
|
||||
exports: "writable",
|
||||
module: "readonly",
|
||||
require: "readonly",
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaFeatures: { globalReturn: true },
|
||||
ecmaVersion: 2021,
|
||||
sourceType: "script",
|
||||
},
|
||||
rules: {
|
||||
...commonRules,
|
||||
"n/no-unsupported-features/es-syntax": ["error", { ignores: [] }],
|
||||
},
|
||||
}
|
||||
|
||||
// https://eslint.org/docs/latest/use/configure/configuration-files-new
|
||||
module.exports.flat = {
|
||||
languageOptions: {
|
||||
sourceType: "commonjs",
|
||||
globals: {
|
||||
...globals.node,
|
||||
...module.exports.eslintrc.globals,
|
||||
},
|
||||
},
|
||||
rules: module.exports.eslintrc.rules,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue