Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds new analyzer: stylelint #1001

Merged
merged 2 commits into from
May 18, 2021
Merged

Adds new analyzer: stylelint #1001

merged 2 commits into from
May 18, 2021

Conversation

scalvert
Copy link
Contributor

@scalvert scalvert commented May 18, 2021

Adds a new analyzer for stylelint, which allows us to expand our linting offering to that lint library in addition to the two existing ones.

Usage:

let config: Partial<LinterOptions> = {
  config: {
    rules: {
      'font-family-no-duplicate-names': true,
    },
  },
};

let analyzer: StylelintAnalyzer = new StylelintAnalyzer(config);
let result = await analyzer.analyze(filePaths);

Subsequent PRs are going to add more constrained types around the two classifications of analyzers: lint and ast.

@scalvert scalvert added the enhancement New feature or request label May 18, 2021
@scalvert scalvert requested review from rwjblue and carakessler May 18, 2021 17:56
@scalvert scalvert merged commit 59767fd into master May 18, 2021
@scalvert scalvert deleted the add-stylelint branch May 18, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant