refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
43
home/ags/node_modules/eslint-plugin-n/lib/configs/recommended-module.js
generated
vendored
43
home/ags/node_modules/eslint-plugin-n/lib/configs/recommended-module.js
generated
vendored
|
|
@ -1,43 +0,0 @@
|
|||
"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: "off",
|
||||
__filename: "off",
|
||||
exports: "off",
|
||||
module: "off",
|
||||
require: "off",
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaFeatures: { globalReturn: false },
|
||||
ecmaVersion: 2021,
|
||||
sourceType: "module",
|
||||
},
|
||||
rules: {
|
||||
...commonRules,
|
||||
"n/no-unsupported-features/es-syntax": [
|
||||
"error",
|
||||
{ ignores: ["modules"] },
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
// flat config: https://eslint.org/docs/latest/use/configure/configuration-files-new
|
||||
module.exports.flat = {
|
||||
languageOptions: {
|
||||
sourceType: "module",
|
||||
globals: {
|
||||
...globals.node,
|
||||
...module.exports.eslintrc.globals,
|
||||
},
|
||||
},
|
||||
rules: module.exports.eslintrc.rules,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue