Skip to content

Commit

Permalink
Removed unneeded JavaScript blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 21, 2024
1 parent a88280d commit fb47a39
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,6 @@ import markdown from '@eslint/markdown'
import eslintPluginYml from 'eslint-plugin-yml'

export default [
{
files: ['**/*.js', '**/*.mjs'],
languageOptions: { ecmaVersion: 'latest', sourceType: 'script' },
rules: {
...js.configs.recommended.rules,
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
'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)
'no-constant-condition': 'off', // allow constant conditions
'no-empty': 'off', // allow empty blocks
'no-inner-declarations': 'off', // allow function declarations anywhere
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
}
},
{ files: ['**/*.mjs'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
{
files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown },
Expand Down

0 comments on commit fb47a39

Please sign in to comment.