@whoisfreire/eslint-config 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/base.mjs ADDED
@@ -0,0 +1,29 @@
1
+ import eslint from '@eslint/js'
2
+ import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
3
+ import tseslint from 'typescript-eslint'
4
+
5
+ export default [
6
+ eslint.configs.recommended,
7
+ ...tseslint.configs.recommended,
8
+ ...neostandard({
9
+ ignores: resolveIgnoresFromGitignore(),
10
+ }),
11
+ {
12
+ rules: {
13
+ '@stylistic/max-len': [ 'warn', {
14
+ code: 120,
15
+ tabWidth: 2,
16
+ ignoreUrls: true,
17
+ ignoreComments: false,
18
+ } ],
19
+ '@stylistic/array-bracket-spacing': [ 'error', 'always' ],
20
+ '@stylistic/space-before-function-paren': [ 'error',
21
+ {
22
+ anonymous: 'always',
23
+ asyncArrow: 'always',
24
+ named: 'never',
25
+ },
26
+ ],
27
+ },
28
+ }
29
+ ]
@@ -0,0 +1,3 @@
1
+ import config from './base.mjs'
2
+
3
+ export default config
package/node.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import config from './base.mjs'
2
+
3
+ export default [
4
+ ...config,
5
+ {
6
+ rules: {
7
+ 'no-new-require': 'off',
8
+ 'no-useless-constructor': 'off',
9
+ },
10
+ languageOptions: {
11
+ globals: {
12
+ ...globals.node,
13
+ },
14
+ },
15
+ }
16
+ ]
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@whoisfreire/eslint-config",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "Custom ESLint configuration for WhoIsFreire projects. Based on Rocketseat ESLint custom configuration.",
6
+ "main": "base.mjs",
7
+ "license": "MIT",
8
+ "keywords": [],
9
+ "author": "WhoIsFreire",
10
+ "packageManager": "pnpm@10.28.2",
11
+ "dependencies": {
12
+ "@eslint/js": "^9.39.2",
13
+ "eslint": "^9.39.2",
14
+ "neostandard": "^0.12.2",
15
+ "typescript": "^5.9.3",
16
+ "typescript-eslint": "^8.54.0"
17
+ },
18
+ "peerDependencies": {
19
+ "typescript": ">=5",
20
+ "eslint": ">=9"
21
+ },
22
+ "peerDependenciesMeta": {
23
+ "typescript": {
24
+ "optional": true
25
+ }
26
+ }
27
+
28
+ }