@hera-software/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/index.js +30 -0
- package/package.json +15 -0
package/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const globals = require('globals')
|
|
2
|
+
const eslint = require('@eslint/js')
|
|
3
|
+
const tseslint = require('typescript-eslint')
|
|
4
|
+
const eslintPrettier = require('eslint-plugin-prettier/recommended')
|
|
5
|
+
module.exports = tseslint.config(
|
|
6
|
+
eslint.configs.recommended,
|
|
7
|
+
...tseslint.configs.recommended,
|
|
8
|
+
eslintPrettier,
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.node
|
|
13
|
+
},
|
|
14
|
+
parserOptions: {
|
|
15
|
+
// TODO: This is enabled because @typescript-eslint/typescript-estree, a typescript-eslint dependency
|
|
16
|
+
// used by its parser supports typescript versions >=4.7.4 <5.6.0. Eslint is working as expected however,
|
|
17
|
+
// so let's just remove when support is reached in the near future.
|
|
18
|
+
// See: https://typescript-eslint.io/packages/typescript-estree/
|
|
19
|
+
warnOnUnsupportedTypeScriptVersion: false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
rules: {
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
24
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
25
|
+
'@typescript-eslint/no-unused-vars': 'warn',
|
|
26
|
+
'no-useless-escape': 'warn',
|
|
27
|
+
'prettier/prettier': ['error']
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
)
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hera-software/eslint-config",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared ESLint config for Hera Software projects",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"keywords": [],
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": ""
|
|
15
|
+
}
|