Skip to content

Commit 57501df

Browse files
committed
lint: modify lint-staged and disable linting during production builds
1 parent 2fd4e71 commit 57501df

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.eslintrc.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,22 @@
1212
// Code quality
1313
"no-console": "warn",
1414
"no-debugger": "error",
15-
// "no-unused-vars": "off", // Handled by TS version above
15+
"no-unused-vars": "off", // Handled by TS version above
1616

1717
// Import sorting and cleanliness
1818
"import/order": [
1919
"error",
2020
{
21-
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
21+
"groups": [
22+
"builtin",
23+
"external",
24+
"internal",
25+
"parent",
26+
"sibling",
27+
"index",
28+
"object",
29+
"type"
30+
],
2231
"newlines-between": "always",
2332
"alphabetize": { "order": "asc", "caseInsensitive": true }
2433
}

next.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
eslint: {
4+
ignoreDuringBuilds: true,
5+
},
6+
};
37

48
export default nextConfig;
59

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"lint-staged": {
1515
"*.{js,ts,jsx,tsx}": [
16-
"eslint --fix",
16+
"next lint --fix",
1717
"prettier --write"
1818
],
1919
"*.{json,md,css,scss,html}": [

0 commit comments

Comments
 (0)