Skip to content

Commit

Permalink
fix(eslint): fix prevent abbrev rule
Browse files Browse the repository at this point in the history
And yml empty rule
  • Loading branch information
clementprevot committed Apr 22, 2024
1 parent c993eb7 commit fc83853
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions packages/eslint-config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,38 @@ module.exports = {
'unicorn/filename-case': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-null': 'off',
'unicorn/no-useless-undefined': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': [
'error',
{
ignore: ['e2e', /^ignore/i],
replacements: {
dev: {
development: false,
},
dist: {
distribution: false,
},
doc: {
document: false,
},
docs: {
documentation: false,
documents: false,
},
env: {
environment: false,
},
param: {
parameter: false,
},
params: {
parameters: false,
},
prod: {
production: false,
},
props: {
properties: false,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/yml.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
files: ['.github/workflows/*.yml', '.github/workflows/*.yaml'],

rules: {
'yml/no-empty': 'off',
'yml/no-empty-mapping-value': 'off',
},
},
],
Expand Down

0 comments on commit fc83853

Please sign in to comment.