Skip to content

Commit

Permalink
Use glob override for .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Mar 29, 2023
1 parent 0f4b211 commit ff5d515
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,13 @@ var SHAREDB_RULES = {
// as-needed quote props are easier to write
'quote-props': ['error', 'as-needed'],
'require-jsdoc': 'off',
'valid-jsdoc': 'off',

// Required after upgrade to ecmaVersion: 6
'no-invalid-this': 'off'
'valid-jsdoc': 'off'
};

module.exports = {
extends: 'google',
parserOptions: {
// Support ES6 imports and exports
ecmaVersion: 6,
sourceType: 'module'
ecmaVersion: 3
},
rules: Object.assign(
{},
Expand All @@ -54,5 +49,17 @@ module.exports = {
),
ignorePatterns: [
'/docs/'
],
overrides: [
{
files: ['examples/counter-json1-vite/*.js'],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
rules: {
quotes: ['error', 'single']
}
}
]
};

0 comments on commit ff5d515

Please sign in to comment.