Skip to content

Commit

Permalink
Removed semicolons + enforcement
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui authored Nov 11, 2024
1 parent dfeb13c commit 5c04bdf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import js from '@eslint/js';
import globals from 'globals';
import json from 'eslint-plugin-json';
import js from '@eslint/js'
import globals from 'globals'
import json from 'eslint-plugin-json'

export default [
js.configs.recommended,
{ ignores: ['**/*.min.js'] },
{
rules: {
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'semi': ['error', 'always'], // enforce semicolons at end of statement
'quotes': ['error', 'single'], // enforce single quotes for string literals
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects
'no-async-promise-executor': 'off', // allow promise executor functions to be async (to accomodate await lines)
Expand All @@ -25,4 +24,4 @@ export default [
},
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ...json.configs['recommended'] }
];
]

0 comments on commit 5c04bdf

Please sign in to comment.