New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apc-style

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apc-style

Code Style rules for APC projects

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75
increased by316.67%
Maintainers
2
Weekly downloads
 
Created
Source

APC Code Style

Build Status Greenkeeper badge

Code style rules and dependencies for APC js/scss/pug projects

yarn add -D apc-style

Editor config

Copy the .editorconfig file from this project to your project root

cp node_modules/apc-style/.editorconfig .editorconfig

This copying is now performed automatically with version 1.2

Lint rules

ES lint

Add this to your .eslintrc file:

{
  "extends": "apc"
}

This skeleton .eslintrc is automatically copyied with version 1.2

Note: We omitted the eslint-config- prefix since it is automatically assumed by ESLint.

You can override settings from the shareable config by adding them directly into your .eslintrc file.

Sass-Lint

Include sass-lint by either adding a config file rule to your .sass-lint.yml file

options:
  config-file: node_modules/apc-style/.sass-lint.yml

or via package.json:

{
  "sasslintConfig": "node_modules/apc-style/.sass-lint.yml"
}

Pug-lint

Include pug-lint rules by adding the following to your .pug-lintrc file:

{
  "extends": "./node_modules/apc-style/.pug-lintrc"
}

Keywords

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc