mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 23:58:06 +01:00
3732c5f71e
ESLint rules have been added to enforce our JSDoc conventions. These rules were introduced by updating `@metamask/eslint-config` to v9. Some of the rules have been disabled because the effort to fix all lint errors was too high. It might be easiest to enable these rules one directory at a time, or one rule at a time. Most of the changes in this PR were a result of running `yarn lint:fix`. There were a handful of manual changes that seemed obvious and simple to make. Anything beyond that and the rule was left disabled.
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"resources": {
|
|
"@babel/core": {
|
|
"packages": {
|
|
"<root>": true,
|
|
"@babel/preset-env": true,
|
|
"@babel/preset-react": true,
|
|
"@babel/plugin-transform-runtime": true,
|
|
"@babel/plugin-proposal-class-properties": true,
|
|
"@babel/plugin-proposal-object-rest-spread": true,
|
|
"@babel/plugin-proposal-optional-chaining": true,
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": true
|
|
}
|
|
},
|
|
"@eslint/eslintrc": {
|
|
"packages": {
|
|
"@babel/eslint-parser": true,
|
|
"@babel/eslint-plugin": true,
|
|
"@metamask/eslint-config": true,
|
|
"@metamask/eslint-config-nodejs": true,
|
|
"eslint": true,
|
|
"eslint-config-prettier": true,
|
|
"eslint-plugin-import": true,
|
|
"eslint-plugin-jsdoc": true,
|
|
"eslint-plugin-node": true,
|
|
"eslint-plugin-prettier": true,
|
|
"eslint-plugin-react": true,
|
|
"eslint-plugin-react-hooks": true
|
|
}
|
|
},
|
|
"eslint-module-utils": {
|
|
"packages": {
|
|
"eslint-import-resolver-node": true,
|
|
"@babel/eslint-parser": true
|
|
}
|
|
},
|
|
"node-sass": {
|
|
"native": true
|
|
},
|
|
"module-deps": {
|
|
"packages": {
|
|
"loose-envify": true
|
|
}
|
|
},
|
|
"sass": {
|
|
"env": "unfrozen",
|
|
"builtin": {
|
|
"url": true
|
|
},
|
|
"globals": {
|
|
"Buffer": true
|
|
}
|
|
}
|
|
}
|
|
}
|