Skip to content

Commit

Permalink
chore: update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stas-nc committed Oct 22, 2024
1 parent 8ce99f3 commit e5bd2ba
Show file tree
Hide file tree
Showing 4 changed files with 901 additions and 1,347 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

67 changes: 67 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
'use strict';

const babelParser = require('@babel/eslint-parser');
const prettier = require('eslint-plugin-prettier');
const globals = require('globals');

/**
* @type {import('eslint').Linter.Config}
*/
module.exports = [
{
ignores: [
'src/pipe.min.js',
'**/coverage',
'examples/fragment-performance/hooks.js',
'examples/fragment-performance/test.js'
]
},
{
plugins: {
prettier
},

languageOptions: {
globals: {
...Object.fromEntries(
Object.entries(globals.browser).map(([key]) => [key, 'off'])
),
...globals.node,
require: false,
module: false
},

parser: babelParser,
ecmaVersion: 5,
sourceType: 'script',

parserOptions: {
requireConfigFile: false
}
},

rules: {
curly: 2,
'no-underscore-dangle': 0,
'no-constant-condition': 2,
'no-dupe-args': 2,
'no-debugger': 2,
'no-duplicate-case': 2,
'no-empty': 2,
'no-empty-character-class': 2,
'no-eval': 2,
'no-unused-vars': 2,
'no-lonely-if': 2,
quotes: [0, true, 'single'],
strict: [2, 'global'],

'prettier/prettier': [
2,
{
singleQuote: true,
tabWidth: 4
}
]
}
}
];
Loading

0 comments on commit e5bd2ba

Please sign in to comment.