Skip to content

Commit

Permalink
update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Feb 9, 2024
1 parent a78a2db commit ad92af5
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
module.exports = {
'env': {
'commonjs': true,
'es6': true,
'node': true
env: {
browser: true,
commonjs: true,
es2021: true
},
'extends': 'standard',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
extends: 'standard',
overrides: [
{
env: {
node: true
},
files: [
'.eslintrc.{js,cjs}'
],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest'
},
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
'semi': ['error', 'always'],
rules: {
semi: ['error', 'always']
}
}
};

0 comments on commit ad92af5

Please sign in to comment.