-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
399 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,37 @@ | ||
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" | ||
], | ||
"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": {} | ||
} | ||
] | ||
root: true, | ||
overrides: [ | ||
{ | ||
files: ['*.ts'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@angular-eslint/recommended', | ||
'plugin:@angular-eslint/template/process-inline-templates', | ||
], | ||
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: {}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
export default ({ componentName, children }) => ` | ||
import { LucideIconData } from './types'; | ||
import defaultAttributes from './constants/default-attributes'; | ||
/* eslint-disable no-shadow-restricted-names */ | ||
const ${componentName}: LucideIconData = [ | ||
'svg', | ||
defaultAttributes, | ||
${JSON.stringify(children)} | ||
]; | ||
const ${componentName}: LucideIconData = ${JSON.stringify(children)}; | ||
export default ${componentName}; | ||
`; |
18 changes: 9 additions & 9 deletions
18
packages/lucide-angular/src/icons/constants/default-attributes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export default { | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
width: 24, | ||
height: 24, | ||
viewBox: '0 0 24 24', | ||
fill: 'none', | ||
stroke: 'currentColor', | ||
'stroke-width': 2, | ||
'stroke-linecap': 'round', | ||
'stroke-linejoin': 'round', | ||
xmlns: 'http://www.w3.org/2000/svg', | ||
width: 24, | ||
height: 24, | ||
viewBox: '0 0 24 24', | ||
fill: 'none', | ||
stroke: 'currentColor', | ||
'stroke-width': 2, | ||
'stroke-linecap': 'round', | ||
'stroke-linejoin': 'round', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** @deprecated Use the injection token LUCIDE_ICONS instead. Will be removed in v1.0. */ | ||
export class Icons { | ||
constructor(private icons: object) {} | ||
constructor(private icons: object) {} | ||
} |
Oops, something went wrong.