@hotcakes/eslint-config
Version:
Provides a consistent linting foundation for JavaScript projects. It defines a solid baseline of style and best practices, and is extendable for both internal and external usage.
20 lines (18 loc) • 533 B
JavaScript
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import js from "@eslint/js";
import stylistic from '@stylistic/eslint-plugin'
const indentation = 4;
export default defineConfig([{
extends: ["js/all"],
files: ['**/*.js'],
languageOptions: { globals: globals.browser },
plugins: {
"@stylistic": stylistic,
js,
},
rules: {
"@stylistic/indent": ["error", indentation],
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
}
}]);