mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 15:47:44 +01:00
* Use prettier own instead of eslint plugin * Extend prettier config angular eslint * Upgrade root prettier to 3 * Fix css syntax errors * Change eslint ignore to prettier ignore * Ignore formatting for outputs * Fix lint-staged error when edited multiple files * Bump pnpm version * Remove unnecessary pnpm config --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
39 lines
880 B
JavaScript
39 lines
880 B
JavaScript
module.exports = {
|
|
root: true,
|
|
overrides: [
|
|
{
|
|
files: ['*.ts'],
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@angular-eslint/recommended',
|
|
'plugin:@angular-eslint/template/process-inline-templates',
|
|
'prettier',
|
|
],
|
|
rules: {
|
|
'@angular-eslint/directive-selector': [
|
|
'error',
|
|
{
|
|
type: 'attribute',
|
|
prefix: 'lucide',
|
|
style: 'camelCase',
|
|
},
|
|
],
|
|
'@angular-eslint/component-selector': [
|
|
'error',
|
|
{
|
|
type: 'element',
|
|
prefix: ['lucide', 'i', 'span'],
|
|
style: 'kebab-case',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['*.html'],
|
|
extends: ['plugin:@angular-eslint/template/recommended'],
|
|
rules: {},
|
|
},
|
|
],
|
|
};
|