Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
was ignoring scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nwfistere committed Aug 23, 2023
1 parent f1ef7ad commit aa9b88f
Show file tree
Hide file tree
Showing 5 changed files with 6,956 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ bin/
obj/
[pP]roperties/
.vs/
scripts/
/scripts/
27 changes: 27 additions & 0 deletions docs/external/choices/scripts/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// get polyfill settings from top level config
// @ts-ignore
const { settings } = require('../../../.eslintrc.json');

// Adding non-polyfilable Symbol-related functions as they are most probably
// behind the flag

settings.polyfills.push(
'Symbol.toStringTag',
'Symbol.for',
'Object.getOwnPropertySymbols',
'Object.getOwnPropertyDescriptors',
'Promise', // Promise is gate checked
);

module.exports = /** @type {import('eslint').Linter.Config} */ ({
root: true,
extends: ['plugin:compat/recommended'],
parserOptions: {
// ensure that it's compatible with ES5 browsers, so, no `const`, etc
ecmaVersion: 5,
},
env: {
browser: true,
},
settings,
});
Loading

0 comments on commit aa9b88f

Please sign in to comment.