Skip to content

Commit 12eb361

Browse files
committed
Setup rules
1 parent 9186bc1 commit 12eb361

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

Diff for: .eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ module.exports = {
4848
requireParamDescription: false,
4949
requireReturnDescription: false,
5050
}],
51+
'quote-props': ['error', 'consistent', {
52+
keywords: true,
53+
unnecessary: false,
54+
}],
5155
},
5256
overrides: [
5357
{

Diff for: configs/recommended.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ module.exports = {
6868
},
6969
multilineDetection: 'brackets',
7070
}],
71+
'quotes': ['error', 'single'],
72+
'quote-props': ['error', 'consistent', {
73+
keywords: true,
74+
unnecessary: false,
75+
numbers: true,
76+
}],
7177
'sort-imports': ['error', {
7278
ignoreCase: true,
7379
ignoreDeclarationSort: true,
@@ -76,7 +82,7 @@ module.exports = {
7682
memberSyntaxSortOrder: ['all', 'single', 'multiple', 'none'],
7783
}],
7884
'no-async-promise-executor': 'off',
79-
semi: [2, 'always'],
85+
'semi': [2, 'always'],
8086
'comma-dangle': ['error', {
8187
imports: 'never',
8288
exports: 'never',
@@ -87,8 +93,8 @@ module.exports = {
8793
'object-curly-spacing': ['error', 'always'],
8894
'array-bracket-spacing': ['error', 'never'],
8995
'object-shorthand': ['error', 'always'],
90-
eqeqeq: ['error', 'always'],
91-
indent: 'off',
96+
'eqeqeq': ['error', 'always'],
97+
'indent': 'off',
9298
'newline-after-var': ['error', 'always'],
9399
'space-unary-ops': [2, {
94100
words: true,

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "eslint-plugin-lsf",
2+
"name": "@heartexlabs/eslint-plugin-frontend",
33
"version": "1.0.0",
44
"description": "Set of rules used in Label Studio frontend repos",
55
"main": "index.js",
@@ -11,7 +11,7 @@
1111
},
1212
"author": "",
1313
"license": "ISC",
14-
"devDependencies": {
14+
"dependencies": {
1515
"@typescript-eslint/eslint-plugin": "^5.45.0",
1616
"@typescript-eslint/parser": "^5.45.0",
1717
"eslint": "^8.2.0",

0 commit comments

Comments
 (0)