| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- * Exceptions. See /LICENSE for license information.
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- */
- /*
- * ESLint configuration.
- *
- * See https://eslint.style and https://typescript-eslint.io for additional
- * linting options.
- */
- // @ts-check
- import js from '@eslint/js';
- import tseslint from 'typescript-eslint';
- import stylistic from '@stylistic/eslint-plugin';
- export default tseslint.config(
- {
- ignores: ['dist', 'out', 'esbuild.js'],
- },
- js.configs.recommended,
- ...tseslint.configs.recommended,
- ...tseslint.configs.stylistic,
- {
- plugins: {
- '@stylistic': stylistic,
- },
- rules: {
- curly: 'warn',
- '@stylistic/semi': ['warn', 'always'],
- '@typescript-eslint/no-empty-function': 'off',
- '@typescript-eslint/naming-convention': [
- 'warn',
- {
- selector: 'import',
- format: ['camelCase', 'PascalCase'],
- },
- ],
- '@typescript-eslint/no-unused-vars': [
- 'error',
- {
- argsIgnorePattern: '^_',
- },
- ],
- },
- }
- );
|