refactor(eslint)!: move env config to recommended
MODIFY
packages/eslint-config/eslint-config.json
packages/eslint-config/eslint-config.json
"plugin:@endo/recommended"
],
"parser": "@typescript-eslint/parser",
- "processor": "@jessie.js/use-jessie",
- "env": {
- "es6": true,
- "node": false,
- "commonjs": false
- },
- "globals": {
- "assert": "readonly",
- "console": "readonly",
- "Compartment": "readonly",
- "StaticModuleRecord": "readonly",
- "TextDecoder": "readonly",
- "TextEncoder": "readonly",
- "URL": "readonly",
- "URLSearchParams": "readonly",
-
- // Allow what SES makes powerless, copied from its whitelist
- // *** Constructor Properties of the Global Object
- "Array": "readonly",
- "ArrayBuffer": "readonly",
- "BigInt": "readonly",
- "BigInt64Array": "readonly",
- "BigUint64Array": "readonly",
- "Boolean": "readonly",
- "DataView": "readonly",
- "EvalError": "readonly",
- "Float32Array": "readonly",
- "Float64Array": "readonly",
- "Int8Array": "readonly",
- "Int16Array": "readonly",
- "Int32Array": "readonly",
- "Map": "readonly",
- "Number": "readonly",
- "Object": "readonly",
- "Promise": "readonly",
- "Proxy": "readonly",
- "RangeError": "readonly",
- "ReferenceError": "readonly",
- "Set": "readonly",
- "String": "readonly",
- "Symbol": "readonly",
- "SyntaxError": "readonly",
- "TypeError": "readonly",
- "Uint8Array": "readonly",
- "Uint8ClampedArray": "readonly",
- "Uint16Array": "readonly",
- "Uint32Array": "readonly",
- "URIError": "readonly",
- "WeakMap": "readonly",
- "WeakSet": "readonly",
- // *** Other Properties of the Global Object
- "JSON": "readonly",
- "Reflect": "readonly",
- // *** Annex B
- "escape": "readonly",
- "unescape": "readonly",
- // ESNext
- "lockdown": "readonly",
- "harden": "readonly",
- "HandledPromise": "readonly"
- },
"rules": {
"quotes": [
"error",

MODIFY
packages/eslint-plugin/lib/configs/recommended.js
packages/eslint-plugin/lib/configs/recommended.js
module.exports = {
- extends: ["plugin:@jessie.js/recommended"],
- plugins: ["@endo"],
+ extends: ['plugin:@jessie.js/recommended'],
+ plugins: ['@endo'],
+ processor: '@jessie.js/use-jessie',
+ env: {
+ es6: true,
+ node: false,
+ commonjs: false,
+ },
+ globals: {
+ assert: 'readonly',
+ console: 'readonly',
+ Compartment: 'readonly',
+ StaticModuleRecord: 'readonly',
+ TextDecoder: 'readonly',
+ TextEncoder: 'readonly',
+ URL: 'readonly',
+ URLSearchParams: 'readonly',
+
+ // Allow what SES makes powerless, copied from its whitelist
+ // *** Constructor Properties of the Global Object
+ Array: 'readonly',
+ ArrayBuffer: 'readonly',
+ BigInt: 'readonly',
+ BigInt64Array: 'readonly',
+ BigUint64Array: 'readonly',
+ Boolean: 'readonly',
+ DataView: 'readonly',
+ EvalError: 'readonly',
+ Float32Array: 'readonly',
+ Float64Array: 'readonly',
+ Int8Array: 'readonly',
+ Int16Array: 'readonly',
+ Int32Array: 'readonly',
+ Map: 'readonly',
+ Number: 'readonly',
+ Object: 'readonly',
+ Promise: 'readonly',
+ Proxy: 'readonly',
+ RangeError: 'readonly',
+ ReferenceError: 'readonly',
+ Set: 'readonly',
+ String: 'readonly',
+ Symbol: 'readonly',
+ SyntaxError: 'readonly',
+ TypeError: 'readonly',
+ Uint8Array: 'readonly',
+ Uint8ClampedArray: 'readonly',
+ Uint16Array: 'readonly',
+ Uint32Array: 'readonly',
+ URIError: 'readonly',
+ WeakMap: 'readonly',
+ WeakSet: 'readonly',
+ // *** Other Properties of the Global Object
+ JSON: 'readonly',
+ Reflect: 'readonly',
+ // *** Annex B
+ escape: 'readonly',
+ unescape: 'readonly',
+ // ESNext
+ lockdown: 'readonly',
+ harden: 'readonly',
+ HandledPromise: 'readonly',
+ },
rules: {
- "@endo/assert-fail-as-throw": 2
+ '@endo/assert-fail-as-throw': 2,
},
};

refactor(eslint)!: move env config to recommended