8000 feat: add rule to enforce that `process` is imported (#40) · sveltejs/eslint-config@6923a32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6923a32

Browse files
authored
feat: add rule to enforce that process is imported (#40)
1 parent c91e102 commit 6923a32

File tree

4 files changed

+84
-177
lines changed

4 files changed

+84
-177
lines changed

.changeset/little-frogs-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/eslint-config": minor
3+
---
4+
5+
feat: add rule to enforce that process is imported

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default [
5757
'object-shorthand': ['error', 'always'],
5858
'prefer-arrow-callback': 'error',
5959
'svelte/no-inner-declarations': 'off',
60+
'n/prefer-global/process': ['error', 'never'],
6061
'n/prefer-node-protocol': 'error'
6162
}
6263
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"globals": "^15.6.0"
2828
},
2929
"devDependencies": {
30-
"@changesets/cli": "^2.27.6",
30+
"@changesets/cli": "^2.27.8",
3131
"@stylistic/eslint-plugin-js": "^1.8.1",
3232
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
3333
"eslint": "^9.6.0",

0 commit comments

Comments
 (0)
0