mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-21 17:37:01 +01:00
fix(lint): Change endOfLine rules to better support linting on Windows (#20078)
This commit is contained in:
parent
f9649a27f8
commit
39b1996aab
@ -72,5 +72,8 @@ module.exports = {
|
|||||||
// upgrading eslint and dependencies. This rule should be evaluated and
|
// upgrading eslint and dependencies. This rule should be evaluated and
|
||||||
// if agreeable turned on upstream in @metamask/eslint-config
|
// if agreeable turned on upstream in @metamask/eslint-config
|
||||||
'import/no-named-as-default-member': 'off',
|
'import/no-named-as-default-member': 'off',
|
||||||
|
|
||||||
|
// This is necessary to run eslint on Windows and not get a thousand CRLF errors
|
||||||
|
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
|
# All of these are defaults except singleQuote and endOfLine, but we specify them
|
||||||
|
# for explicitness
|
||||||
|
endOfLine: auto
|
||||||
singleQuote: true
|
singleQuote: true
|
||||||
trailingComma: all
|
trailingComma: all
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
"lint:lockfile:dedupe:fix": "yarn dedupe",
|
"lint:lockfile:dedupe:fix": "yarn dedupe",
|
||||||
"lint:lockfile": "lockfile-lint --path yarn.lock --allowed-hosts npm yarn github.com codeload.github.com --empty-hostname true --allowed-schemes \"https:\" \"git+https:\" \"npm:\" \"patch:\" \"workspace:\"",
|
"lint:lockfile": "lockfile-lint --path yarn.lock --allowed-hosts npm yarn github.com codeload.github.com --empty-hostname true --allowed-schemes \"https:\" \"git+https:\" \"npm:\" \"patch:\" \"workspace:\"",
|
||||||
"lint:shellcheck": "./development/shellcheck.sh",
|
"lint:shellcheck": "./development/shellcheck.sh",
|
||||||
"lint:styles": "stylelint -- */**/*.scss",
|
"lint:styles": "stylelint '*/**/*.scss'",
|
||||||
"lint:styles:fix": "yarn lint:styles --fix",
|
"lint:styles:fix": "yarn lint:styles --fix",
|
||||||
"lint:tsc": "tsc --project tsconfig.json --noEmit",
|
"lint:tsc": "tsc --project tsconfig.json --noEmit",
|
||||||
"validate-source-maps": "node ./development/sourcemap-validator.js",
|
"validate-source-maps": "node ./development/sourcemap-validator.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user