Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rules and plugins to ESLint (mdn#16370)
* Add ESLint (using Standard styling) * Add ESLint to npm run lint command * Update package-lock.json * Place ESLint after test/lint * Add ESLint to fix command * Update ESLint rules * Use semicolons for separate commands * Fix ESLint quotation rule * Add TypeScript files in root to ESLint rules * Run Prettier formatting * Tell ESLint not to conflict with Prettier * Fix security audit * Disable no-console ESLint rule * Let Prettier handle indenations * Integrate ESLint into linter/fix scripts * Fix bad merge * Update ESLint * Integrate Prettier into ESLint * Remove stdio: inherit and force colors * Lint JSDoc comments * Label changes to .eslintrc.json as infra * Install eslint-plugin-jsdoc as a dev dependency * Allow empty catch block in try-catch * Require JSDoc for any function/method/class * Separate Prettier call for Markdown files * Warn when function has no description * Add JSDoc to format fix script * Prefer arrow function syntax * Fix formatting for TypeScript files * Update JSDocs * Update ESLint and its dependencies * Add additional rules and sort alphabetically * Prefer const over let * Update package-lock.json * Update package-lock.json * Fix commands * Fix commands * Update eslint-plugin-jsdoc * Fix typo * Use TS no-extra-parens rule * Run fix script * Update quotes rule to avoid escapes * Convert to arrow functions; update some typedefs * Prefer typescript-eslint rule extensions * Make fix script asynchronous * Run fix script and manually fix many issues * Require some JSDoc declarations * Fix more issues * Use prefer-arrow-functions plugin * Run fix script * Remove no-extra-parens rule (conflicts with Prettier) * Disable default-case * Fix remaining issues * Silence warnings in fix script * Update rules * Fix remaining errors * Fix TypeScript issues
- Loading branch information