Skip to content

Commit

Permalink
Setup rules
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasrq committed Nov 29, 2022
1 parent 9186bc1 commit 12eb361
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ module.exports = {
requireParamDescription: false,
requireReturnDescription: false,
}],
'quote-props': ['error', 'consistent', {
keywords: true,
unnecessary: false,
}],
},
overrides: [
{
Expand Down
12 changes: 9 additions & 3 deletions configs/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ module.exports = {
},
multilineDetection: 'brackets',
}],
'quotes': ['error', 'single'],
'quote-props': ['error', 'consistent', {
keywords: true,
unnecessary: false,
numbers: true,
}],
'sort-imports': ['error', {
ignoreCase: true,
ignoreDeclarationSort: true,
Expand All @@ -76,7 +82,7 @@ module.exports = {
memberSyntaxSortOrder: ['all', 'single', 'multiple', 'none'],
}],
'no-async-promise-executor': 'off',
semi: [2, 'always'],
'semi': [2, 'always'],
'comma-dangle': ['error', {
imports: 'never',
exports: 'never',
Expand All @@ -87,8 +93,8 @@ module.exports = {
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'object-shorthand': ['error', 'always'],
eqeqeq: ['error', 'always'],
indent: 'off',
'eqeqeq': ['error', 'always'],
'indent': 'off',
'newline-after-var': ['error', 'always'],
'space-unary-ops': [2, {
words: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "eslint-plugin-lsf",
"name": "@heartexlabs/eslint-plugin-frontend",
"version": "1.0.0",
"description": "Set of rules used in Label Studio frontend repos",
"main": "index.js",
Expand All @@ -11,7 +11,7 @@
},
"author": "",
"license": "ISC",
"devDependencies": {
"dependencies": {
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.2.0",
Expand Down

0 comments on commit 12eb361

Please sign in to comment.